Form Based Queries

Portista

New member
Local time
Today, 16:10
Joined
Aug 2, 2006
Messages
6
:confused: G'day, can anyone tell me how to quickly create form based queries using the design view interface. I want my users to be able to specify the various criterias using drop down menus. :confused:
 
You can't do it quickly

Add the drop down menues to your form and a button.
On the button click event you build the SQL string of the query you want to run. I.e.

Code:
Dim sMyQuery as String

sMyQuery = "SELECT * FROM MyTable WHERE YourField = " & me.mydropdown1 & ";"
 

Users who are viewing this thread

Back
Top Bottom