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

What if FINDFIRST didn't find anything 1

Status
Not open for further replies.

tattoo911

Programmer
Mar 9, 2007
2
CA
I have the following line of code.

Me.RecordsetClone.FindFirst "[CustNum] = '" & Me![Combo29] & "'"

How do I wrap this in an IF statement to determine if it actually found a match to what was entered in COMBO29.

I tried .NoMatch but that didn't work...


thanks
 
Are you saying that this didn't work?
If Me.RecordsetClone.NoMatch Then
'-- No record located
Else
'-- Record located
End If



HTH RuralGuy (RG for short) acXP winXP Pro
Please respond to this forum so all may benefit
 
do you know about the ubiquitous F1 (aka Help). FindFirst is generally recognized as a keyword.




MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top