C
Chris B via AccessMonster.com
Hi All,
I have a several lookup comboboxes on the same form, they lookup differant
parts of the database, these are working perfectly.
What i want is that after the user has looked up and found the record, I want
the combobox not to display anything, the reason is the user will find a
record and later scroll to another but the last lookup still remains in the
combobox, this creates confusion.
The code for one of my combobox's is:
Private Sub Combo16_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo16], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have tried using things like me.undo in the 'on exit' and 'on lost focus'
events but nothing happens.
Any suggestions on how to tackel this is most welcome!
Thanks
I have a several lookup comboboxes on the same form, they lookup differant
parts of the database, these are working perfectly.
What i want is that after the user has looked up and found the record, I want
the combobox not to display anything, the reason is the user will find a
record and later scroll to another but the last lookup still remains in the
combobox, this creates confusion.
The code for one of my combobox's is:
Private Sub Combo16_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo16], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have tried using things like me.undo in the 'on exit' and 'on lost focus'
events but nothing happens.
Any suggestions on how to tackel this is most welcome!
Thanks