Combo Box Rowsource property

S

Shetty

Deer Friends

I want to set Rowsource property of combo box while using command button in
my form

By default rowsource of combo is based on querry
I want to modify this querry providing modifying criteria given for one of
the field

Actually I want to filter the values in the row source of the combo box

Please advise

ramesh shetty
 
T

Tom van Stiphout

On Wed, 6 Feb 2008 17:39:44 +0530, "Shetty" <[email protected]>
wrote:

(I'm not a deer but will try to answer anyway :)
Perhaps you could have two queries, and you would decide which one to
use in the command button's click event. Pseudo-code:
sub command1_click()
if some conditions are true
my_combobox.RowSource = "query1"
else
my_combobox.RowSource = "query2"
end if

-Tom.
 

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