Cobo Box lookup record on a form

S

SAC

After I lookup a record using a combo box, I can't lookup another one. I
acts like it is "stuck." Here's the code I have:

Private Sub Combo114_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "[wotrhKey] = " & str(Nz(Me![Combo114], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Combo114 = ""
End Sub

Any ideas?

Thanks.
 
J

Jeanette Cunningham

Hi SAC,
make sure combo114 is an unbound combo. It should not have anything in its
Control Source.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

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