Hi - I have a drop down on a main menu that I want to use the selected entry to open a report and only show records based on what was selected on the main menu.
The drop down is a combo box (named Combo3A) using the following
Code:
SELECT DISTINCT [Booking Master Data].[CSQ Officer] FROM [Booking Master Data] WHERE NOT [Booking Master Data].[CSQ Officer] IS NULL ORDER BY [Booking Master Data].[CSQ Officer];
It returns the single record of all CSQ Officers. I then have a report which shows all the officers records.
In after update for Combo3A i have the following
Code:
Private Sub Combo3a_AfterUpdate()DoCmd.OpenReport "Facilities bookings", acViewPreview, "[CSQ Officier]= & Nz([Combo3A], 0)"
End Sub
It works and opens the report but does not display the records for the officer (it just displays all records). Any help greatly appreciated.