Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2021
    Posts
    2

    Question How to customise input mask in MS Access to input a vehicle registration number?

    I was trying to make a database for my pollution testing centre. It requires the registration number of vehicles. In india the normal format of vehicle registration number is



    AB 12 XY 1234 or AB 12 1234 or AB 12 X 1234


    Where AB denotes the first two letters of respective states and the coming 12 denotes the two digit number of respective registration office. The letters XY and 1234 denotes the number of specific vehicle (it varies). But for new registration offices, the letters XY may be missing or may be X only.

    How can I make an input mask that can withstand all these conditions?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I tried, can't. Build a VBA custom function that will verify input is valid structure.

    There really is no need to save this composite identifier in table. Have each component entered in a separate field. Use code to combine them. A simple expression concatenating fields can do that.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Input Mask
    By Aboss in forum Access
    Replies: 4
    Last Post: 06-25-2020, 10:41 AM
  2. Input Mask
    By Khalil Handal in forum Access
    Replies: 3
    Last Post: 04-27-2018, 07:59 AM
  3. Access Input Mask Help
    By bonfire00 in forum Access
    Replies: 2
    Last Post: 07-29-2016, 02:30 PM
  4. Set input mask to "000" for a number
    By cottonland in forum Programming
    Replies: 5
    Last Post: 06-24-2016, 10:00 AM
  5. input mask
    By slimjen in forum Forms
    Replies: 7
    Last Post: 10-07-2013, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums