Hi to everyone,
I have the following problem which is producing the following error:
Syntax error (missing operator) in query expression '(CourseNo = CN1863)
This caused from the follOwing being run from a command button on a form. The sync is between the form (Combo box ) and a report (txt field).
DoCmd.OpenRepor t "RptValidationM ainP3_Course186 3", acPrintPreview, , "CourseNo = " & Me.CourseNo
The report is based on a table which has many 'CourseNo's', and I want the chosen value from the form combo to filter the records to be printed in the report. i.e select CourseNo '1863' via the combo box on the form (with other fields input by the user) and then clicking the command button opens the report filtered to the combo box value.
My apologies if i've been a bit long winded describing this, and hope that there is enough here to show my problem.
Any assistance would be really appreciated.
My Thanks
Dave
I have the following problem which is producing the following error:
Syntax error (missing operator) in query expression '(CourseNo = CN1863)
This caused from the follOwing being run from a command button on a form. The sync is between the form (Combo box ) and a report (txt field).
DoCmd.OpenRepor t "RptValidationM ainP3_Course186 3", acPrintPreview, , "CourseNo = " & Me.CourseNo
The report is based on a table which has many 'CourseNo's', and I want the chosen value from the form combo to filter the records to be printed in the report. i.e select CourseNo '1863' via the combo box on the form (with other fields input by the user) and then clicking the command button opens the report filtered to the combo box value.
My apologies if i've been a bit long winded describing this, and hope that there is enough here to show my problem.
Any assistance would be really appreciated.
My Thanks
Dave
Comment