open query by combo box?

romanticode

Registered User.
Local time
Tomorrow, 00:59
Joined
Oct 26, 2007
Messages
39
i have several query and want to open it by combo box & button.

if user select "AA" on combo box an then pres a button, query "11" will be opened.
if user select "AB" on combo box an then pres a button, query "12" will be opened.
etc

how can i make that form?

thanks
 
Why don't you just write a few Case statements in a Select Case block that will carry out the action you want based on the conditions that you specify?

Like...
Code:
OnClick

  Select Case me.comboboxname

    Case "AA"
      Docmd.OpenQuery "11"

    Case "AB"
      Docmd.OpenQuery "22"
Does that work?
 

Users who are viewing this thread

Back
Top Bottom