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

Find Record by two criteria 1

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi all is it possible to bring up a record by 2 criteria's

e.g

' Set rs = Me.RecordsetClone
'
' stLinkCriteria = "Treatment_ID = " & Me.txtTREATMENT_ID
' rs.FindFirst stLinkCriteria
' Bookmark = rs.Bookmark

this shows how to bring up a record based on treatment id

How would i bring record for HospNo and Treatdate where hospno is a text.

Any suggestions ?

many thanks
 
stLinkCriteria = "Treatment_ID = " & Me.txtTREATMENT_ID & _
" AND HospNo =" & Me.txtHospNo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top