dctechuser
Technical User
I have a Work Order Number field that is called Workorder_TextBox. This Workorder_ Textbox field can be left blank and the record can save, but when something is entered in the Workorder_textbox field, I want it to give a message that only numbers are allowed. If some user comes in and puts abcderrr in there, I do not want the record to save but have the user get a message and then exit the sub so as to make the correction.
How can I write VB coding to do this? I need to allow blanks, because records can be added if the user has no number available, but when a number is available, I want only numbers entered and so I want an edit check for this to not allow a saved record to occur if user enters letters.
How can I write VB coding to do this? I need to allow blanks, because records can be added if the user has no number available, but when a number is available, I want only numbers entered and so I want an edit check for this to not allow a saved record to occur if user enters letters.