combo box queries

G

gaget

I have a combo box that displays the numbers 0-3. All of these numbers are
linked to only one query within the rowsouce that displays a specific table.
I am trying to get get a different query to be used so when the #3 is
selected it displays a different table. Can anyone help me?
 
F

fredg

I have a combo box that displays the numbers 0-3. All of these numbers are
linked to only one query within the rowsouce that displays a specific table.
I am trying to get get a different query to be used so when the #3 is
selected it displays a different table. Can anyone help me?

It's not very clear as to what you are trying to do.

As a guess, you wish to change the rowsource of a query from one query
to another if the value 3 is selected?
The value must be in the combo box's bound column.

Code the Combo Box AfterUpdate event:
If Me.ComboName = 3 Then
Me.ComboName.Rowsource = "NameOfQuery"
End If

Now how do you intend to get the previous rowsource back?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top