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

    Can I make a calculated text field unique?

    I have a few string fields and a calculated field which just concatenates the string fields. I want the calculated field to be unique and not allow creation if the combination of string fields already exists in the database. How can I do this? Thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I don't think so, unless you are storing the calculated field in a field which is set to be unique.

  3. #3
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    I am storing the calculated field in a field but not sure how to set it to be unique. How would I do this? Thanks

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Open up the table is Design View, go to the Properties of that Field, and set the Indexed property to "Yes (No Duplicates)".

    Are you doing the calculation in a query and writing it back to a table?
    Or are you using the new feature in the newer versions of Access that allows you to store Calculations in a Table?

    If the latter of those two options, I don't know what the properties of those fields look like, if they are different. I am still on Access 2007.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-12-2014, 12:18 PM
  2. Replies: 4
    Last Post: 09-02-2013, 03:00 PM
  3. Replies: 2
    Last Post: 01-30-2013, 06:48 AM
  4. Can Calculated Field (Text) Be Edited?
    By melhzy in forum Access
    Replies: 1
    Last Post: 11-26-2012, 12:12 PM
  5. Replies: 5
    Last Post: 06-19-2012, 10:46 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