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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find record in another form 1

Status
Not open for further replies.

JesOakley

Programmer
Jan 21, 2008
42
GB
Using data in one form, I wish to find a record in another. It looks like FindRecord is the answer, but I'm not sure of the syntax for the 'front end' of it to make it do the action in the remote form. Can anyone help? I thought something like
Code:
forms!frmRemote.FindRecord(varWhat,,true,,true)
?
 
You can use the recordsetclone of the second form:

Code:
Set rs=forms!frmRemote.RecordsetClone
rs.FindFirst "ThisTextField='" & ThatString & "'"
If Not rs.NoMatch
'Found
forms!frmRemote.Bookmark=rs.Bookmark
EndIf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top