Results 1 to 6 of 6
  1. #1
    acrowe97 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Aug 2018
    Posts
    41

    Update existing data to match input mask


    I have a table where I have phone numbers stored as XXX-XXX-XXXX, but i need them to match the new input mask of (XXX) XXX-XXXX. Is there a way to update all the numbers without doing it individually?

  2. #2
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Hmm, well I normally store them in the Table without a mask and then use the mask on the Form to display it the way I want to see it. Is that an option for you?

  3. #3
    acrowe97 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Aug 2018
    Posts
    41
    I have the mask on the form and table, but I had imported the phone numbers prior to implementing the mask. When i go into the form the mask does not get applied to the table info, is there a way I can change that?

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Just run an update query and use the Replace function: Replace([YourPhoneNumberFieldName],Left([YourPhoneNumberFieldName],4),"(" & Left([YourPhoneNumberFieldName],3) & ") ").
    Cheers,
    Vlad

  5. #5
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Tell me why that matters? The table just holds the data much like a bucket of water. No one should be using the table.

  6. #6
    acrowe97 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Aug 2018
    Posts
    41
    Thank you so much! Worked like a charm.

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

Similar Threads

  1. Input Mask
    By Khalil Handal in forum Access
    Replies: 3
    Last Post: 04-27-2018, 07:59 AM
  2. Double Input mask for data field
    By Pippolo in forum Access
    Replies: 1
    Last Post: 06-30-2014, 12:28 PM
  3. Replies: 2
    Last Post: 09-11-2012, 11:02 AM
  4. Custom Data input mask or format?
    By RiverAnimal in forum Database Design
    Replies: 2
    Last Post: 12-06-2010, 09:58 AM
  5. Input mask messed up my field data type
    By ghostmachine in forum Access
    Replies: 2
    Last Post: 11-11-2010, 05:32 PM

Tags for this Thread

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