mohammadagul
PrinceAtif
- Local time
- Today, 21:02
- Joined
- Mar 14, 2004
- Messages
- 298
ok i have a invoice form with Subform
presently i am doing somthing like this
i have placed a code on the OnEnter event of the subform as such,
If isnull (Me.CustomerId) or me.CustomerID = "" then
msgbox "Please Enter A Valid Customer ID",vbokonly,"Customer ID Needed"
me.customerID.Setfocus
End if
Now what i want is to ammend this code so that before entering inthe Invoice subform the code should check that CustoemrId, CustomerName and Employee Name is not blank. There should be some data in them. How can i make the code checks for the three textboxes instead of one.
presently i am doing somthing like this
i have placed a code on the OnEnter event of the subform as such,
If isnull (Me.CustomerId) or me.CustomerID = "" then
msgbox "Please Enter A Valid Customer ID",vbokonly,"Customer ID Needed"
me.customerID.Setfocus
End if
Now what i want is to ammend this code so that before entering inthe Invoice subform the code should check that CustoemrId, CustomerName and Employee Name is not blank. There should be some data in them. How can i make the code checks for the three textboxes instead of one.