Using Access 2000 - I have a query that is suppose to return the records from table [ Per Billable Log] within specified time range and find matching data from another table [ Clinician].
Table [Clinicians] houses Clinician name, location and rate information
Table [Per Billable Log] houses Clinician name, location and number of units for each type of service rendered on each day. The two tables are connected by field [ID]
Please see the code below
I want the query to search for records in the [per billable log] table within the specified range and then return that record 1 time only and search the [clinician table ] for the rate information and return that as well.
My end goal is to use the query to build a report that would list the clinician's name in alpha order with his/her rates in the header area and in the footer list the service dates and types of service rendered for each day, then summing. It is returning the same record from [per billable log] 150 or so times in the query of which is causing a slight problem.
Any help offered would be greatly appreciated. Thanks so much!
Table [Clinicians] houses Clinician name, location and rate information
Table [Per Billable Log] houses Clinician name, location and number of units for each type of service rendered on each day. The two tables are connected by field [ID]
Please see the code below
Code:
SELECT [Per Billable Log].Clinician, [Per Billable Log].Location, [Per Billable Log].Date, [Per Billable Log].EmployeeType, [Per Billable Log].[Multiple Locations], [Per Billable Log].[DOC Intake], [Per Billable Log].[DOC FT], [Per Billable Log].[DOC IT-S], [Per Billable Log].[DOC IT], [Per Billable Log].[DOC TESTING], [Per Billable Log].[DOMHA Intake], [Per Billable Log].[DOMHA FT], [Per Billable Log].[DOMHA IT], [Per Billable Log].[DOMHA TESTING], [Per Billable Log].[EAP Intake], [Per Billable Log].[EAP FT], [Per Billable Log].[EAP IT-S], [Per Billable Log].[EAP IT], [Per Billable Log].[EAP Training], [Per Billable Log].[TDPRS TESTING], [Per Billable Log].[TDPRS Intake], [Per Billable Log].[TDPRS FT], [Per Billable Log].[TDPRS IT-S], [Per Billable Log].[Staff Training], [Per Billable Log].GAP, [Per Billable Log].[TRDPRS IT], [Per Billable Log].ID, Clinician.[$DOC Intake], Clinician.[$DOMHA Intake], Clinician.[$EAP Intake], Clinician.[$TDPRS Intake], Clinician.[$DOC FT], Clinician.[$DOMHA FT], Clinician.[$EAP FT], Clinician.[$TDPRS FT], Clinician.[$DOC IT-S], Clinician.[$DOMHA IT-S], Clinician.[$TDPRS IT-S], Clinician.[$EAP IT-S], Clinician.[$DOC TESTING], Clinician.[$DOMHA TESTING], Clinician.[$EAP Training], Clinician.[$Staff Training], Clinician.[$GAP], Clinician.[$EAP IT], Clinician.[$DOMHA IT], Clinician.[$DOC IT], Clinician.[$TDPRS IT], Clinician.[TDPRS TESTING], [Per Billable Log].[DOMHA IT-S] FROM Clinician, [Per Billable Log] WHERE ((([Per Billable Log].Date) Between forms![Report Date Range]![Beginning Date] And forms![Report Date Range]![Ending Date]));
My end goal is to use the query to build a report that would list the clinician's name in alpha order with his/her rates in the header area and in the footer list the service dates and types of service rendered for each day, then summing. It is returning the same record from [per billable log] 150 or so times in the query of which is causing a slight problem.
Any help offered would be greatly appreciated. Thanks so much!
Comment