after event combo boxes

M

Much Mahalos

Thanks to all those who answered the numerous queries about cascading combo
boxes.

I was able to set up three boxes in my form where the input in the preceding
box selects the values available in the next.

I used the requery code suggested by Mr. Vinson:

Private Sub cboColumn1_After Update()
Me! cboColumn2.requery
End Sub

However when I reopen my form it dosn't show the values from the previous
entries into each field. I have to select and click the preceding combo box
and then the value appears.

How do I get previous entries in the combo boxes to show by default when the
form is reopened?

Does it involve the reply by Sprinks:

Me!MyControl.DefaultValue = Me!MyControl

instead of the requery code?

Thanks for your patience and help.
 
O

Ofer

You can add the requery code also to the OnCurrent event of the form, that
will refresh the combo row source when you open the form, and when you'll
move between records
 

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