alternative to a requery

S

SueM

Hi there,

I have a form with 2 comboboxes and a control button on.
One to search for records and the other to return units
available of the item selected in combo1.

Combo1 has a requery for combo2 in it's after update event
which is working successfully, however I would like for
both combos to be able to have their contents cleared from
the on click event on a controlbutton.

In the onclick event I currently have the following:

Me.Combo1.Requery
Me.Combo2.Requery

But this isn't working. Any ideas on how I could do this
or what I have done wrong would be greatly appreciated.

Cheers,

Sue
 
B

Bruce M. Thompson

Combo1 has a requery for combo2 in it's after update event
which is working successfully, however I would like for
both combos to be able to have their contents cleared from
the on click event on a controlbutton.

In the onclick event I currently have the following:

Me.Combo1.Requery
Me.Combo2.Requery

But this isn't working. Any ideas on how I could do this
or what I have done wrong would be greatly appreciated.

Try this:

Me.Combo1.Value = Null
Me.Combo2.Value = Null
 

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

Similar Threads


Top