Consulting

Results 1 to 2 of 2

Thread: Is it possible to prevent a user inputting an alphanumeric number in a feild using vb

  1. #1
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location

    Is it possible to prevent a user inputting an alphanumeric number in a feild using vb

    Hi, is it possible to prevent an alphanumeric number being inputted into a table as well as preventing alphanumeric digits from appearing in a drop down list box; I created with a list of telephone numbers; using vba or an expression etc? In other word,s I would like to auto-filter out telephone numbers that lead with more than one zero; as well as if the user enters a letter instead of numbers. I would like a message to pop up to tell the user that the entry is an invalid number. Is this possible to do? If so, do you have any example of code which can do this?


    Thanks for your contributions

  2. #2
    VBAX Regular
    Joined
    Jun 2009
    Location
    Dorset
    Posts
    60
    Location
    Yes this is possible.
    Though I am wondering why you don't just set the field type to a number then Access will not allow any alphanumeric entries?
    Regards
    JD
    ------------------------------------
    Software-Matters
    Dorset

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •