D
DeVille
Hi I have this combo box on my form 'cboCompanyName'. It
filters the record based on the value I select from the
drop down list. The only problem is that if the records
are already filtered it won't find the record I'm looking
for. I tried to attach a piece of code to the on got
focus event. However because this combo box is the first
in the tab order. When the form is opened it causes it
form to get into a loop where it gets stuck in a
flickering state. I tried shifting the tab order but that
didn't work either. If any one can suggest a better way
to fix this problem thanks in advance
Private Sub cboCompanyName _GotFocus()
DoCmd.ShowAllRecords
End Sub
filters the record based on the value I select from the
drop down list. The only problem is that if the records
are already filtered it won't find the record I'm looking
for. I tried to attach a piece of code to the on got
focus event. However because this combo box is the first
in the tab order. When the form is opened it causes it
form to get into a loop where it gets stuck in a
flickering state. I tried shifting the tab order but that
didn't work either. If any one can suggest a better way
to fix this problem thanks in advance
Private Sub cboCompanyName _GotFocus()
DoCmd.ShowAllRecords
End Sub