Results 1 to 4 of 4
  1. #1
    EdaxFlamma is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Jun 2013
    Posts
    34

    Preventing Duplicate Data Involving 2 Values

    Good afternoon all,

    I am currently working on a form portion of a database that tracks how many clients come to specific events.

    The structure is as such:

    tblClient
    ClientID
    ClientFirstName
    ClientSecondName
    ClientAddressID
    Etc.



    tblSocials
    SocialID
    SocialHostID
    SocialDate
    SocialLessonSubjID
    Notes

    tblSocialPatronList
    SocialPatronListID
    ClientID
    SocialID
    ClientSocialPrice

    My issue is that currently with my form set up, I can enter a client into the subForm based on tblSocialPatronList more than once for the same event. Is there an easy way to control that while still allowing the same patron to be available for multiple social events?
    Click image for larger version. 

Name:	Database form.png 
Views:	8 
Size:	14.6 KB 
ID:	20598
    Thanks for your help,
    -J.P.
    Last edited by EdaxFlamma; 05-06-2015 at 11:08 AM. Reason: hit enter too soon...

  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
    Simplest and easiest is to set a compound index on ClientID and SocialID fields in tblSocialPatronList.
    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
    EdaxFlamma is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Jun 2013
    Posts
    34
    June7, thanks for the quick reply; I'll check that out now. I knew there had to be a way but I just didn't know where to start.

    Thank you again. If I get stuck I may try to pick everyone's brain once more.

  4. #4
    EdaxFlamma is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Jun 2013
    Posts
    34
    Update: We are solved. Thank you very much for your help.

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

Similar Threads

  1. Preventing Duplicate Entries
    By FormerJarHead in forum Modules
    Replies: 12
    Last Post: 01-29-2015, 10:16 AM
  2. Replies: 3
    Last Post: 05-06-2014, 12:57 PM
  3. Replies: 8
    Last Post: 09-16-2013, 01:12 PM
  4. Preventing duplicate data entrry
    By FJM in forum Forms
    Replies: 4
    Last Post: 07-16-2012, 07:12 AM
  5. preventing duplicate records
    By Alliana Gray in forum Access
    Replies: 6
    Last Post: 08-11-2011, 01:18 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