Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After Update?

Status
Not open for further replies.

johngordon

Technical User
Jun 29, 2002
112
0
0
US
Greetings,

I use the following code to update a form based on a Name selected from a combo box:

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

Set rs = Me.Recordset.Clone
rs.FindFirst "[LastName] = '" & Me![Text73] & "'"
Me.Bookmark = rs.Bookmark

End Sub

What I really want is for the code to select the individual by first and last name after update. The names are pulled from a query.

How do I include the [FirstName] into the code above?

Thanks,

John
 
try
"[LastName] = '" & Me![Text73] & " [FirstName] = " & Me![namefield] & "
 
Actually your reply made me think about what I was trying to do.

I finally used the following as a solution:

rs.FindFirst "[ClientID] = '" & Me![Text73] & "'"

Thanks for the quick reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top