Results 1 to 7 of 7
  1. #1
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40

    Question Can you have 'Multiple Validations' in one Field


    I have a field in my Customers Table that is a Number type (to record the percentage level of interest). In the Validation property I have <=1 And >=0 to shows percentage. However, I would also like the entries into this field to be limited to increments of 10, such as : 0%, 10%, 20% etc; to 100%. Can anyone help with the correct Validation Rule to only allow increments of 10, and also the Validation Rule (<=1 And >=0) required to show percentages?

    Many thanks
    euphonium01

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Options:

    1. combobox

    2. rule: 0 Or 0.10 Or 0.20 Or 0.30 Or 0.40 Or 0.50 Or 0.60 Or 0.70 Or 0.80 Or 0.90 Or 1 Or Is Null
    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.

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Not sure why the validation rule to show percentages would **require** <= 100%. You could have 200% of something...

  4. #4
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40
    Quote Originally Posted by Dal Jeanis View Post
    Not sure why the validation rule to show percentages would **require** <= 100%. You could have 200% of something...
    The field using the percentage is called 'Sales Potential', the maximum chance of any sale could only be 100%, hence the <=100%? Unless there's another method I could use that will include something to restrict entries to 10% increments?

  5. #5
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    June7's methods are easy. If it wasn't just 10% increments between 0% and 100%, then you could put a more complex validation test in VBA behind the "before update" event. But that's overkill here.

  6. #6
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40

    Solved

    Quote Originally Posted by Dal Jeanis View Post
    June7's methods are easy. If it wasn't just 10% increments between 0% and 100%, then you could put a more complex validation test in VBA behind the "before update" event. But that's overkill here.
    I agree, having spoken to a few colleagues, a more complex validation would be required and would be overkill. I took June7's advice and created a combo box and set the 'Limit to List' property to Yes, solved the problem.

    Thanks to you all for your input, the expertise I receive from people on this site is amazing!

    euphonium01

  7. #7
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    You're Welcome. If you haven't already, you can click the little sherriff's star under june7's best post to give her some love.
    |
    |
    |
    V

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

Similar Threads

  1. Replies: 8
    Last Post: 04-13-2012, 12:25 PM
  2. Multiple validations in same field
    By UTS in forum Queries
    Replies: 1
    Last Post: 09-06-2011, 09:51 AM
  3. Simple Problem with Validations
    By oleBucky in forum Forms
    Replies: 11
    Last Post: 04-12-2011, 05:39 PM
  4. Validations
    By Icewolf0927 in forum Forms
    Replies: 1
    Last Post: 09-24-2010, 09:54 AM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 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