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

docmd.findrecord does not return error message

Status
Not open for further replies.

rene1000

IS-IT--Management
Apr 9, 2002
89
0
0
NL
When i lookup a record with the command:

docmd.findrecord string

it works fine, however when the string does not exist it returns to the form without an error message. how can i run some vb code whenever the string does not exist in the record ?

any help is greatly appreciated.



 
Try this:

If IsNull(FieldName) Then
MsgBox "Where is the information in field 1?", vbExclamation
field1.SetFocus
End If

I think that might work for you:)

GOD bless,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top