theinviter
Registered User.
- Local time
- Today, 07:25
- Joined
- Aug 14, 2014
- Messages
- 240
Hi guys;
need help please , i designed a form with text field once the user update this text filed with Number (ID) then all field on the form will be filled with data form query based on the ID entered but if the ID not present i need to cancel update and show message box " no record found"
how can i do that.
this the code below .
Private Sub Command1487_Click()
[Drug Name] = DLookup("[Drug Name]", "Recycle_query", "[ID] = " & Me.Text1477 & "")
Order_Date = Now()
End Sub
if the ID dos not exit the to cancel update
need help please , i designed a form with text field once the user update this text filed with Number (ID) then all field on the form will be filled with data form query based on the ID entered but if the ID not present i need to cancel update and show message box " no record found"
how can i do that.
this the code below .
Private Sub Command1487_Click()
[Drug Name] = DLookup("[Drug Name]", "Recycle_query", "[ID] = " & Me.Text1477 & "")
Order_Date = Now()
End Sub
if the ID dos not exit the to cancel update