Run Query from form

mshirwan

Registered User.
Local time
Today, 21:08
Joined
Jul 25, 2004
Messages
20
Does anyone know how to run a query from form and set the query parameters to fields in the form.

This is what I have a query that have a date between start date, End date, I want to be able to run it from a form and set the query paramiters from the start date field that I have on the form?

any ideas?
 
Code:
DoCmd.OpenQuery "MyQuery"

The parameters should be included within the Query already like so:

[Forms]![MyForm]![MyControl]
 
many thanks

that worked fine, thank you

Dont know why i havent thought of that, as i have used the tecknick for filtering data into a combobox on a form.
 

Users who are viewing this thread

Back
Top Bottom