Results 1 to 5 of 5
  1. #1
    simba is offline Advanced Beginner
    Windows 7 Access 2003
    Join Date
    Mar 2010
    Posts
    34

    Can not add a new record

    Please see the attached database. When I go to a new record, I cannot add a pediatrician or genetic center from the main form.



    It warns that it would create a duplicate value

    Any help on this highly appreciated.
    Last edited by simba; 03-30-2010 at 12:56 PM. Reason: spelling mistake

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    i believe the reason is because you're creating a circular reference with the subforms on your main form because they have the same source as your main form.

  3. #3
    simba is offline Advanced Beginner
    Windows 7 Access 2003
    Join Date
    Mar 2010
    Posts
    34

    circular reference

    I would appreciate, if you can explain where I am using circular reference. To be honest, I do not know where I am making a mistake.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by simba View Post
    I would appreciate, if you can explain where I am using circular reference. To be honest, I do not know where I am making a mistake.
    see the recordsource on your MAIN FORM:



    Now see that your genetic subform on the second tab strip also has the same recordsource as what you see above:



    All of your subforms are like this, and the only time you do NOT get the duplicate error message is when you click on the first tab strip, which is the only tab that does NOT contain a subform on it with the same recordsource as your main form.

  5. #5
    simba is offline Advanced Beginner
    Windows 7 Access 2003
    Join Date
    Mar 2010
    Posts
    34
    Thank you man for the detailed explanation. I am looking into how to change that.

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

Similar Threads

  1. If duplicate record, go to original record
    By BigBear in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 02:58 AM
  2. If duplicate record, go to original record
    By islandboy in forum Access
    Replies: 51
    Last Post: 06-02-2010, 04:17 PM
  3. copy current record to new record
    By er_manojbisht in forum Forms
    Replies: 1
    Last Post: 02-27-2010, 05:31 PM
  4. Replies: 3
    Last Post: 06-27-2009, 03:53 PM
  5. Deleting Record Contents, not complete record...
    By Charles Waters in forum Access
    Replies: 2
    Last Post: 06-24-2008, 12:00 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