B
Brad
Thanks for taking the time to read my quetion.
I am importing information into a table. Not all fields
are filled. Filling the empty fields is done on the
form. Me.LocationID (text) has a name in it but it may
not be exactly the same as Me.Producer (a combo box, also
text. items in list come from a shared table on the
server). When Me.Producer receives the focus, I would
like the list to drop down (got that part), but then I'd
like it to go to the item that matches the first 2
letters of the LocationID.
For Example: LocationID could = "Bens Co."
When me.Producer receives the focus I'd like the first
item in the list that has the first two letters = "Be" to
receive the foucs. So it would scroll past all the A's
etc.
Here is what I've tried so far.
Private Sub Producer_GotFocus()
MsgBox Me.Producer
If Not IsNull(Me.Producer) Then
Me.Producer.Dropdown
Me.Producer = Left(Me.LocationID, 2)
End If
End Sub
Thanks again,
Brad
I am importing information into a table. Not all fields
are filled. Filling the empty fields is done on the
form. Me.LocationID (text) has a name in it but it may
not be exactly the same as Me.Producer (a combo box, also
text. items in list come from a shared table on the
server). When Me.Producer receives the focus, I would
like the list to drop down (got that part), but then I'd
like it to go to the item that matches the first 2
letters of the LocationID.
For Example: LocationID could = "Bens Co."
When me.Producer receives the focus I'd like the first
item in the list that has the first two letters = "Be" to
receive the foucs. So it would scroll past all the A's
etc.
Here is what I've tried so far.
Private Sub Producer_GotFocus()
MsgBox Me.Producer
If Not IsNull(Me.Producer) Then
Me.Producer.Dropdown
Me.Producer = Left(Me.LocationID, 2)
End If
End Sub
Thanks again,
Brad