Results 1 to 2 of 2
  1. #1
    Modify_inc is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    100

    No Input Mask for a Web Database

    I'm using the Contact Web Database template provided by MS, and am trying to setup a Input Mask and/or Validation Rule expressions for some of the fields.

    Every article I have read seems to always start out with right click on table or form and select Design View for the Input Mask. Well anyone that has used a web database knows that you don't have the Design View, only Layout View. Even most articles by MS start by saying use the Design View. Then I'm told you can do it by a Validation Rule, yet when I open one of the forms, say ContactDetails in Layout View, I don't have a Validation Rule on the ribbon.



    The only place I have found the Validation Rule setting is using one of my tables, but I don't believe I need to set a Validation Rule for my Contacts table. The Contacts table is imported from Excel, it is pretty much already set and validated. I just want to setup the Input Mask or Validation Rules for the ContactDetails Form, which is where the user enters and edits the contact details, the phone numbers to be specific.

    If I have to do it through the Contacts table, I assume that will be inherited to the ContactDetails Form, correct?

    Also how do you enter an expression that will validate a phone number using (000) 000-0000? Using a Input Mask, it looks pretty straight forward, but trying to create an expression is pretty much over whelming at my level of experience with Access.

    Thanks
    Mike

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    In a normal db, properties set up in table will be inherited by existing controls if you select option to do so. When you edit the property in table, a dropdown option should appear next to the property. I have no idea what will happen in web db. I just learned how to edit properties of table fields http://msdn.microsoft.com/en-us/offi...ab_topic2.aspx. I see the ValidationRule but not InputMask. Don't see either of those properties for form controls in Layout view.

    If there is an InputMask I think the validation rule just needs to assure that there are enough characters in the input value. So test the length of the string. Len([fieldname])=10. If the input mask is saving the punctuation and space then the criteria would be =14. However, apparently InputMask is not available in web db. Review this http://social.msdn.microsoft.com/For...6-67a44b55db6a
    Last edited by June7; 08-19-2012 at 02:39 AM.
    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 qbc in forum Access
    Replies: 2
    Last Post: 01-20-2012, 03:27 PM
  2. Input Mask Macro
    By judicial85 in forum Access
    Replies: 2
    Last Post: 01-14-2012, 07:50 PM
  3. Input Mask Issue
    By bakkouz in forum Forms
    Replies: 2
    Last Post: 10-07-2011, 08:27 AM
  4. day of week input mask
    By jacko311 in forum Programming
    Replies: 7
    Last Post: 11-15-2009, 12:56 PM
  5. Input mask
    By doobybug in forum Access
    Replies: 2
    Last Post: 06-17-2009, 09:40 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