XaloRichie
Registered User.
- Local time
- Today, 11:13
- Joined
- Jul 2, 2003
- Messages
- 70
I have a function which uses an input box to get a customer number and passes it to a query criteria.
The input box has OK and cancel buttons, which i have not defined. If the user click ok all is fine but the query displays blank if they click cancel. here is the code.
Dim MSG_BAR, titl_bar, Default_bar
MSG_BAR = "Please Scan or Enter Customer ID"
titl_bar = "Customer Selection"
Default_bar = "1"
LastCust = DLast("[CustomerID]", "CustomerDetails")
WantcusID = InputBox(MSG_BAR, titl_bar, Default_bar)
If WantcusID <= 0 Or WantcusID > LastCust Then
MsgBox "This is not a Valid Customer number please re enter"
GetCkCustid
What can i do to reset all if they press cancel?
The input box has OK and cancel buttons, which i have not defined. If the user click ok all is fine but the query displays blank if they click cancel. here is the code.
Dim MSG_BAR, titl_bar, Default_bar
MSG_BAR = "Please Scan or Enter Customer ID"
titl_bar = "Customer Selection"
Default_bar = "1"
LastCust = DLast("[CustomerID]", "CustomerDetails")
WantcusID = InputBox(MSG_BAR, titl_bar, Default_bar)
If WantcusID <= 0 Or WantcusID > LastCust Then
MsgBox "This is not a Valid Customer number please re enter"
GetCkCustid
What can i do to reset all if they press cancel?