I am using the following code on a search page.
myvalue = InputBox("Pleas e enter the Tracking Number.")
stDocName = "Inspection_for m"
stLinkCriteria = "[tracking_number]=" & "'" & [myvalue] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acReadOnly
What i would like to know is how to open another form or msgbox if the [tracking_number] does not exist as a record.
Thanks in advance.
myvalue = InputBox("Pleas e enter the Tracking Number.")
stDocName = "Inspection_for m"
stLinkCriteria = "[tracking_number]=" & "'" & [myvalue] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acReadOnly
What i would like to know is how to open another form or msgbox if the [tracking_number] does not exist as a record.
Thanks in advance.
Comment