I would like to print a field from another table on a report. The table the report is based upon is Schedules. Using a field from Schedules, I'd like to read another table and print a field from that table. In the Control Source of my report field I thought I could enter an SQL statment similiar to "Select Courses.Desc WHERE Schedules.ClassId = Courses.ClassId" but that didn't work. It said I had syntax errors and wouldn't accept the statement. I want to print Courses.Desc using the ClassId as the key to read the table.
I also tried setting up a query that joined Schedules to Courses based on the ClassId and the report field's Control Source looks like this:
=[Courses Query]![ClassDesc]
When I try to preview the report, an "Enter Parameter Value" box comes up asking for "Courses Query".
I'm new to Access so I haven't gotten VBA down yet but I just need a simple SQL statement or something to retrieve the field from the other table so it will print on my report. I have several fields on the report I need to do this for so I will just be duplicating the code and/or query using different names.
Thanks,
Rod
I also tried setting up a query that joined Schedules to Courses based on the ClassId and the report field's Control Source looks like this:
=[Courses Query]![ClassDesc]
When I try to preview the report, an "Enter Parameter Value" box comes up asking for "Courses Query".
I'm new to Access so I haven't gotten VBA down yet but I just need a simple SQL statement or something to retrieve the field from the other table so it will print on my report. I have several fields on the report I need to do this for so I will just be duplicating the code and/or query using different names.
Thanks,
Rod