Yes It works Allen,
And What about this code
IfNotIsNumeric (OK_Quantity.Text) Then
MsgBox "Fill the correct quantity",64,"Information"
OK_Quantity.SetFocus
VB highlights the words "Then".What's wrong
Needs a closing quote at the end of the word Information.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
I have tried like this
MsgBox,vbOKOnly,"Information,64,"Check Model Name You have Entered"
Response=acDataErrContinue
But no changing occured.What's wrong
If you set the On Not In List property of the combo to:
[Event Procedure]
and click the Build button (...) beside that,
Access will open the code window for you.
Between the "Private Sub..." and "End Sub" lines, you want to type
2
lines:
- The first starts with MsgBox, and then you put in quotes
whatever
message
you want the user to see.
- The second is exactly as I showed you.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Unfortunately I'm blind about VB.
Would you like to write me this time
and,where the good source to study
VB for a beginners.Thank's for helping me.
Use the Not In List event procedure of the combo.
You can say anything you want with a MsgBox.
Then suppress the built-in message by adding this line:
Response = acDataErrContinue
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Thank's Allen,it works but,
I want to change the content of the error essage,
would you like to help me with the code.
Set the Limit To List property of the combo to Yes.
Hi,
I put a combo box in my form as the input data.
How to restricted the input data base to the data
listed in the combo box only,so that if somebody
try to input data which are not listed in combo box,
the form automatically denied to save the record.Thank's