Results 1 to 2 of 2
  1. #1
    klnlsu is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    107

    Index allowing duplicates on Access table


    CustItemTableSpecs.pdf

    The attachment contains documentation for my customer item cross-reference table in my database. Please note the MasterKey index. I want Access to NOT allow a duplication on the combination of these three fields. The problem is that the CustAltAddr field can be NULL in my data. The table is allowing me to enter duplicates when this field is NULL and the other two fields are equal. If I enter an empty string ("") in this field and the other two fields are equal, Access doesn't allow it. I can alter my database coding to replace NULLs with ""s, but that will be very tedious! I have tried setting the "Ignore Nulls" value in my index to Yes and then No and neither setting has any affect. Can someone help? (I have never liked the way Access handles NULLs)

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Just might need to use VBA to do validation.
    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. Replies: 3
    Last Post: 10-22-2013, 02:51 PM
  2. Table allowing duplicate primary keys
    By Count Duckula in forum Access
    Replies: 4
    Last Post: 06-13-2013, 09:12 AM
  3. Replies: 2
    Last Post: 06-13-2013, 09:10 AM
  4. Where is the Index for Table?
    By netchie in forum Access
    Replies: 5
    Last Post: 12-13-2012, 07:53 PM
  5. Replies: 0
    Last Post: 05-10-2012, 01:25 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