Results 1 to 4 of 4
  1. #1
    zylosan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    17

    Validation Rule Expression to test a string field for uniqueness.


    I need to set up a record validation rule to check if a calculated string field is unique. The field is a calculated field made up of [this_month] + " " + str([this_year]). Apparently I can not set up indexing for a calculated field or make it a unique field. So whats the expression? I can not seem to find a function that indicates if the field is unique.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You probably need to use a DLookup() then. http://access.mvps.org/access/general/gen0018.htm

  3. #3
    zylosan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    17
    Never mind I solved this.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you care to share your solution with others that read these threads? How about marking this thread as Solved?

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

Similar Threads

  1. Replies: 20
    Last Post: 09-12-2012, 06:52 PM
  2. Replies: 3
    Last Post: 05-02-2012, 04:05 AM
  3. Validation rule for a month field
    By Alliana Gray in forum Access
    Replies: 7
    Last Post: 08-11-2011, 12:41 PM
  4. Referencing table data in field validation rule
    By toad848 in forum Database Design
    Replies: 3
    Last Post: 03-19-2009, 07:03 AM
  5. Validation rule for a text field
    By wasim_sono in forum Forms
    Replies: 4
    Last Post: 03-14-2006, 11:39 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