B
bbypookins
I'mworking on my database again. Here is the last question I asked that I
knowyou didn't see. It's in regards to your previous response to me...
What is it supposed to be? I'm confused.
knowyou didn't see. It's in regards to your previous response to me...
What is it supposed to be? I'm confused.
Klatuu said:what is the row source of the combo?
The user would select from the combo's list
--
Dave Hargis, Microsoft Access MVP
bbypookins said:Okay. I created an unbound combo box called cboFindRecord and entered your
code in the AFter Update event. Now how does the user utilize this?
Klatuu said:First, lets use a differnt name. I believe SeqNumber is the text box that is
bound to the SeqNumber field in your recordset.
I prefer to use prefixes on my names, so I know immediately what they are,
for example, all text box controls start with txt, so the text box would be
named txtSeqNumber. And a combo box would start with cbo.
Now, you your case, you need to find the division and the sequence number.
You will need to search using both of those values.
Let's call it cboFindRecord
Private Sub cboFindRecord_AfterUpdate
With Me.RecorsetClone
.FindFirst "[SeqNumber] = " & Me.SeqNumber & " AND [Division] = '" &
Me.Division & "'"
If Not .NoMatch Then
Me.Bookmark = .Bookmark
End If
End With
End Sub