B
Bob Vance
My message box is operating perfect but can I also stop the Form [frmModify]
from opening as well.............Thanks Bob
Private Sub Form_Load()
DoCmd.Maximize
On Error Resume Next
' ------ this needs a criteria clause
Me.tbCompanyName = DLookup("CompanyName", "tblCompanyInfo")
'-------
' check for horse name
If Nz(Me.cbHorseName, 0) = 0 Then
MsgBox "(Client Invoice) Must be Edited from Main Menu/ClientInvoices!",
vbOKOnly + vbCritical, "Client Invoice "
End If
End Sub
from opening as well.............Thanks Bob
Private Sub Form_Load()
DoCmd.Maximize
On Error Resume Next
' ------ this needs a criteria clause
Me.tbCompanyName = DLookup("CompanyName", "tblCompanyInfo")
'-------
' check for horse name
If Nz(Me.cbHorseName, 0) = 0 Then
MsgBox "(Client Invoice) Must be Edited from Main Menu/ClientInvoices!",
vbOKOnly + vbCritical, "Client Invoice "
End If
End Sub