Hi,
I have a basic (pre record selector) form with one text box to enter a primary key to then open the main form to the specific record.
using
It still opens to a blank form if there is no record matching.
How can I prevent the main form opening and have a message saying no record found?
Thanks
Graeme
I have a basic (pre record selector) form with one text box to enter a primary key to then open the main form to the specific record.
using
Code:
[Private Sub CmdSearch_Click()
DoCmd.OpenForm "Internal Survey Form", , , "Propref = '" & Me.txtPropref & "'"
End Sub
It still opens to a blank form if there is no record matching.
How can I prevent the main form opening and have a message saying no record found?
Thanks
Graeme