Drop Down Menu In a Query (1 Viewer)

Steve Bremner

Registered User.
Local time
Today, 23:19
Joined
Jul 16, 2003
Messages
34
Hi!
When I run a report, I have a basic quesry asking for the search criteria.
But I would rather have the report run off a form with a drop down menu with all relevant search criteria.
But how can I do this?

Make any sense? :confused:

Thanks

Steve
 

neileg

AWF VIP
Local time
Today, 23:19
Joined
Dec 4, 2002
Messages
5,975
Create a form. Add a combobox that is based on a query or table that lists all the available options.

In the query that your report is based on, change the criterion entry to point to this combo box, e.g. Forms.frmMyForm.cboMyCombo.

Add a button to the form that runs the report.

That will give you what you want.

Once you get this working, you need to figure out how to ensure that a selection has been made before running the report. That's your homework assignment!
 

Steve Bremner

Registered User.
Local time
Today, 23:19
Joined
Jul 16, 2003
Messages
34
Sounds good enough for me!!

Cheers for the help! ;)

neileg said:
Create a form. Add a combobox that is based on a query or table that lists all the available options.

In the query that your report is based on, change the criterion entry to point to this combo box, e.g. Forms.frmMyForm.cboMyCombo.

Add a button to the form that runs the report.

That will give you what you want.

Once you get this working, you need to figure out how to ensure that a selection has been made before running the report. That's your homework assignment!
 

Users who are viewing this thread

Top Bottom