Requery a Combo Box List

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I have a combo box in a Tabular Form which has a drop down box select, but
if I put the word Green in the list , the option to select it in the next
box doesn't show untill I close the form and open it again is there a way to
update it straight away........Thanx ....Bob
 
Use code like the following in the AfterUpdate event of the combo:

Private Sub MyCombo_AfterUpdate()
Me.NameOfComboToRequery.Requery
End Sub
 
Thanks Arvin, But it is always one behind what ever I enter , so if I enter
green it does not show then I enter yellow , then go to next combo box it
shows green and not yellow, so then I enter red and go to next combo it now
shows yellow and not red
Thanks.....Bob
Private Sub cbSpelling_AfterUpdate()

Me.cbSpelling.Requery
End Sub
 
Hi, Bob,

try to save record before you requery.

Vlado
 
Private Sub MyCombo_AfterUpdate()
DoCmd.RunCommand acCmdSaveRecord
Me.NameOfComboToRequery.Requery
End Sub

It will only work if you've satisfied the necessary requirements for that
table. If you have no required fields, or those fields have defaults, it
will work fine.
 

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

Requery combo box 4
Requery Combo boxes 5
Can't Requery Combo Box on Subform 1
Requery 3
Combo Box is not requerying 2
Combo Box 3
Requery Combo box in subform. 0
combo box locked 4

Back
Top