Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enforce number entry

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

Please advise how I would enforce a person put in a number in a field and not letters.

I have a form that asks for phone number and want to put in a pop up message if someone puts in characters instead of a phone numer.
 
I'm not sure how to provide an error message but you can use an "input mask", in design view, to specify how the data is to be formatted. Steps: open the form, change to design view, right click on the text box to change, go to properties, go to input mask under the data or all tab, click on the input mask field, click on the new small icon to change the format. To display an error message you could use VBA or perhaps even a macro would work. Probably VBA is required though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top