Hi Sibprogsistem,
When Charges are selected in AA_002_BillBreakup, they are saved in table AA_002_BillBreakup., which has foreign keys from tables LU_001_Charges and AA_001_SurgeryBill. Now I want to know the total charges incurred for a particular AA_001_SurgeryBill.id. So I felt that where LU_001_Charges.id = ( select id_LU_001_Charges from AA_002_BillBreakup
where id_AA_001_SurgeryBill = AA_001_SurgeryBill.id)). However this only selects the first charge and sum function does not work.
Regards,
Eyeman
51 2021-04-14 14:47:13
Re: Need help to create a calculated field (18 replies, posted in General)
52 2021-04-13 16:55:23
Re: Need help to create a calculated field (18 replies, posted in General)
Hello,
If I delete the calculated field for doctor's fees the programme runs, but the sum function in cf_totalcharges does not work. How to do this correctly?
53 2021-04-11 12:51:50
Topic: Need help to create a calculated field (18 replies, posted in General)
I want to know the total charges incurred in a surgical procedure. I need to deduct the same from the payment received to get the doctor's fees. My calculated field for total charges is giving errors. Please help.
54 2020-11-14 19:01:27
Re: Two foreign keys from same table. (4 replies, posted in General)
Hello Ehwagner and Sibprogsistem
Thanks for endorsing the method. The data are correctly displayed in the table grid.
The project is about creating a Mutual Fund Database. One table_1 (AA_011_MF_SWITCH) stores mutual fund switches between Source_Fund and Destination_Fund. This data is collected by form AA_Form_011_MF_SWITCHES_RECORD, which contains two combo boxes for Source_Fund and Destination_Fund. The dropdown list in these fields refers to the foreign keys from the lookup table of mutual funds (LU_003_FUND_SELECT). I was in doubt about how to get the correct Source_Fund and Destination_Fund, from the lookup table, when a table grid auto query is set up to get all data from the table_1. Finally creating calculated fields in table_1 for Source_Fund and Destination_Fund gets the correct data.
55 2020-11-14 14:02:34
Re: Two foreign keys from same table. (4 replies, posted in General)
Hello,
I have created calculated fields in table_1 to get the right data from table_2. Is there a better way?
Eyeman303
56 2020-11-14 13:18:33
Topic: Two foreign keys from same table. (4 replies, posted in General)
I have a table_1 (AA_011_MF_SWITCH) where there are 2 foreign keys (for source and destination) from another table_2 (LU_003_FUND_SELECT). While setting up an auto-query for a table grid on table_1, how to distinguish between the 2 keys? (i.e get the right source fund and destination fund from table_2). Please help.
57 2020-10-24 17:46:51
Re: How to get date-wise count? (8 replies, posted in SQL queries)
Hello Derek,
Got the point about the calculated field. Just like to know the working of "cfdummy" in the database aa_002_opd_visits.
Regards,
Eyeman
58 2020-10-24 06:39:42
Re: How to get date-wise count? (8 replies, posted in SQL queries)
Hello Derek,
Thanks again. The SQL query is working perfectly. I have learnt how to add 1 day when there is a date/time format, to get the correct result. I have learnt from your different programs on how to get data from linked tables using a calculated field. I would love to learn how to use the same for this query. Please!
Regards,
Eyeman
59 2020-10-23 15:09:08
Re: How to get date-wise count? (8 replies, posted in SQL queries)
Hello Derek,
Is it possible to "SUM" the Patient_Counts in the selected date range?
Regards,
Eyeman
60 2020-10-23 14:35:10
Re: How to get date-wise count? (8 replies, posted in SQL queries)
Hello Derek,
I am fine. Hope you're fine too.
Once again you have provided me with the perfect solution and explained so clearly! Now I have learnt how to extract date from date/time and how to use the WHERE clause to get data for a date range. Thank you so much.
Regards,
Eyeman
61 2020-10-23 10:21:07
Topic: How to get date-wise count? (8 replies, posted in SQL queries)
Hello,
I want to know the number of patients seen every day and also the ability to search the number. in a date range. The Patient_Count button in form D4_Day_Activity does not give the desired result. How to best solve this issue?
Sincerely,
Eyeman
62 2020-10-05 18:48:48
Re: Customer Invoices (13 replies, posted in Database applications)
Hello Derek,
Now I understand clearly, what the symbol signifies. Thank you once again, for helping me learn.
Regards,
Eyeman
63 2020-10-04 09:15:20
Re: Create report using data from multiple tables. (5 replies, posted in Reports)
Hi Brian,
It's an eye-opener. Now the desired report is generated. I'm so happy.
Thanks a ton.
Eyeman
64 2020-10-04 07:39:34
Re: Create report using data from multiple tables. (5 replies, posted in Reports)
Hello,
I have almost generated the desired report using Report(Sql) option. I'm stuck at one point. I want to include the Select_Eye for the Complaints also. But since Select_Eye is a foreign key to both aa_004_clinics and aa_003_complaints, there appears an error message "ambiguous Select_Eye...".How can the eye of complaint and diagnosis be selected? Do I need separate lookup tables for Complaint_Eye and Diagnosis_Eye?
Regards,
Eyeman
65 2020-10-04 04:20:42
Re: Customer Invoices (13 replies, posted in Database applications)
Hi,
I just want to know what does the $ symbol and Line13 mean, in the ReportSQL query Line13 (frmClient.Button4)?
Eyeman
66 2020-09-27 18:44:10
Re: Create report using data from multiple tables. (5 replies, posted in Reports)
Hello Derek,
Thanks for your insights. I have made the OPD_ID as the main link for the tables aa_03_complaints and_ aa_04_clinics. I might include diagnosis within the aa_03_complaints table, but I would like to include other details like History, Glass Power, Medications, Advice etc linked to each OPD_ID. In the original project, I have created sub-forms for each of this and stored them in separate tables. As you have mentioned, I would need a main report with related sub-reports. How to create the same?
Regards,
Eyeman
67 2020-09-21 17:18:37
Topic: Create report using data from multiple tables. (5 replies, posted in Reports)
Hello!
I need to create a report containing data from multiple tables, all tables, linked to a single table by a common field. I tried the Report command and ReportSql but failed to configure properly. I have attached a smaller project created from the original project for easier understanding. The report needs to include PID, First_Name, Last_Name, OPD_ID, Date, Complaints, Eyes complaining about, Doctor, Diagnosis, Eye related to diagnosis Please help.
68 2020-07-10 18:37:25
Re: Coloured coded table (6 replies, posted in General)
Hello Colin, Hello Derek,
Both methods give the desired result. Learnt a lot. Thank you so much.
Regards,
Eyeman
69 2020-07-10 04:33:58
Re: Coloured coded table (6 replies, posted in General)
Good morning Derek,
I followed your guidelines and was able to colour an entire row when a cell entry is "Yes".It looks great! However in another project, I want a cell to change to different colours when it's value falls in different ranges say 11-20 or 21-30. How to achieve this? Please help.
Regards,
Eyeman
70 2020-06-21 13:48:19
Re: Configure clear button (2 replies, posted in General)
Good afternoon Derek,
I now understand that the 'clear' button is simply another search. I have followed your example and made the necessary changes. The 'clear' button is now giving the desired search result. I'm so happy! Thank you so much for teaching me a new lesson.
Regards,
Eyeman
71 2020-06-21 07:35:04
Topic: Configure clear button (2 replies, posted in General)
I want the sum of values in the footer when using the Search button, but not when the search is cleared after clicking the Clear button. However, the calculation is occurring even when the search is cleared, giving a wrong value, as the currency is different. How to overcome this issue?
72 2020-05-31 16:30:35
Re: Image thumbnails (2 replies, posted in General)
Hello Derek,
Thank you once again. I have followed your guidelines and everything working perfectly. The form looks beautiful now, with image loaded.
Regards,
Eyeman
73 2020-05-31 08:12:37
Topic: Image thumbnails (2 replies, posted in General)
Hello,
Is it possible to have image thumbnails in tablegrid view, like photoviewer softwares eg irfanview ? That would make selecting the relevant image easy.
74 2020-05-24 11:59:10
Re: "Not a valid integer" error (15 replies, posted in General)
Hello Derek,
I cannot thank you enough! I have made the correction that you highlighted so precisely and the app is now working perfectly. I have also made a folder for all the photos in the programme folder itself and linked all photos.
Regards,
Eyeman
75 2020-05-24 07:35:07
Re: "Not a valid integer" error (15 replies, posted in General)
Hello Derek,
I have understood that it's the right way to do it. I have changed the tables and forms accordingly but now "List index out of bounds(3)" error crops up, while trying to search in the form DB_003_Contacts.How to correct it? Please help.
Regards,
Eyeman