Results 1 to 4 of 4
  1. #1
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145

    How can I make a calculated, concatenated text field unique?

    I have a calculated field which consists of a few other fields concatenated, ie. [field1] = [field2] & [field3] & [field4]. I need field 1 to be unique when its concatenated, but fields2-4 dont need to be unique. Is there a way to do this? I'm a noob so as much description as possible is helpful and much appreciated. Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You can include an autonumber field in your concatenated field. I do this when I need to assign a serial number that is intuitive to something.

  3. #3
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    theres no way to set a validation rule or anything like that which will not allow a user to create unless the calculated field is unique?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    A typical approach would be to use the Dcount() function. There may be a conflict since you are concatenating fields. You may have to create a SELECT query, include the concatenated fields as an alias (using Group By) and count your alias.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-02-2013, 03:00 PM
  2. Can Calculated Field (Text) Be Edited?
    By melhzy in forum Access
    Replies: 1
    Last Post: 11-26-2012, 12:12 PM
  3. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  4. Formatting a concatenated field
    By kris335 in forum Access
    Replies: 14
    Last Post: 09-21-2011, 09:56 AM
  5. Formatting a Concatenated Field
    By CoachBarker in forum Queries
    Replies: 2
    Last Post: 09-23-2010, 09:12 AM

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