Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Requery

Status
Not open for further replies.

Mahatmt

Programmer
Jan 28, 2003
28
US

I have a form with a combo box to retrieve a list of customers but the form also has a button that calls the New Customer form. I can go to the new Customer form and enter a new record. i then issue a combobox.requery command, but the box is not required (until I oerform a cancel on the current Order record that I have).

Any suggestions. Could it be possible I still have the Customer table open????

Thanks.

Mike
 
You should not perform a requery on the combo box unless you need it since you could requery it x times before you even need it. You could refresh it in the GotFocus event if you wish. That way it would only refresh one time. Or even in the form GotFocus event.

I am a little hazy on exactly what you are trying to say. Does something fail?

-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
Hi Ma,

Are you updating the new record before performing the combo requery?

i.e. You need to move to another record, or save the record - then perform the combo requery.

Regards,

Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top