Hi Everyone
I have a Command Button to Preview a report, filtered on the options selected by a combo box. If no selection is made the preview works fine but is a selection is made I get a Data Mismatch error.
The code is
DoCmd.OpenReport stDocName, acViewPreview, , "Directorate=" & Me!optSelectICIDDirectorate
The combo selects from a list in the underlying table. What am I doing wrong?
Regards
I have a Command Button to Preview a report, filtered on the options selected by a combo box. If no selection is made the preview works fine but is a selection is made I get a Data Mismatch error.
The code is
DoCmd.OpenReport stDocName, acViewPreview, , "Directorate=" & Me!optSelectICIDDirectorate
The combo selects from a list in the underlying table. What am I doing wrong?
Regards
