Refresh Unbound Combo Box

J

jsccorps

Have a combo box in a form "Client Sign In". The combo box "Combo78" is
unbound. When, I add Customer data, the data does not show on the Combo78s
drop down until I close and reopen the form. I've tried addiing
Me.Combo78.requery to the Combo78 On Got Focus event , but that does not
work.
Below is some Combo78 property data:
Control Source: <blank>
Row Source :SELECT Customers.ClientID, Customers.ContactLastName,
Customers.ContactFirstName FROM Customers ORDER BY Customers.ContactLastName;

Any ideas?
 
P

Piet Linden

Have a combo box in a form "Client Sign In".  The combo box "Combo78" is
unbound.  When, I add Customer data, the data does not show on the Combo78s
drop down until I close and reopen the form.  I've tried addiing
Me.Combo78.requery to the Combo78 On Got Focus event , but  that does not
work.  
Below is some Combo78 property data:
Control Source:  <blank>
Row Source :SELECT Customers.ClientID, Customers.ContactLastName,
Customers.ContactFirstName FROM Customers ORDER BY Customers.ContactLastName;

Any ideas?

Okay, that's weird.

Mine works fine. I added the Dropdown method just so that I could see
what's in the combobox's rowsource without all the fun clicking... and
it works fine.

Private Sub cboEmployeeID_GotFocus()
Me.cboEmployeeID.Requery
Me.cboEmployeeID.Dropdown
End Sub
 

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