Ray Holtz wrote:
Access 2003 (2000 file format) question:
When I run a form, it opens with only a combo box and a button to
execute a query based on the criteria tha is selected in the combobox.
Then I need Access to open a report using that query.
Can someone give me some pointers on how to do this, or please point me
in the direction I need to look for this answer?
Perhaps the easiest way to do this is to first create the query you wish
to have as the recordsource for the report. Use some test criteria.
Set up your report to work as you require.
Next, create the form and the combo box.
Now, go back to the query and open it in design view. Where you have
the criteria beneath a field in the design view, replace it with:
[Forms]![frmName]![cboName]
And save it.
Next you can create a button on your form, and the command button wizard
is helpful here, to open the form.
Voila!
--
Tim
http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me