Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Whatt does this message mean...

    I'm trying to break down my Tables into smaller Tables with assigning & relating Tables by ID Fields. This whole relational concept I just can't fully get under my belt & is frustrating regardless how many times I watch videos on this concept. I know that if I could only understand everything & the 3-rules in creating relational tables I could go long ways ...?



    Anyway, as I said I tend to relate my tables according to ID fields, but when I attempt to create queries on more then one "relted" table often times I get this message, "No unique index found for the referenced field of the primary table." What does it mean?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    First of all, if you're relying on rules of anykind to get your through, you've already failed. Rules are meant to be broken, as they always are anyway.

    The biggest culprits in the world are developers themselves, actually.

    Quote Originally Posted by djclntn View Post
    "No unique index found for the referenced field of the primary table." What does it mean?
    More than likely, it means that you're trying to query your tables in a manner that's not conducive to the way the tables were created and manipulated.

    The SQL you're writing should reveal the "why" behind it, if you have it.

  3. #3
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Did you use autonumber to create a primary key? That should assure a unique record reference. The properties of your ID field are unknown, but apparently they are not unique.

  4. #4
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    All of Primaay key in every table are autonumber

  5. #5
    Join Date
    May 2010
    Posts
    339
    See if post #9 in this thread helps.

  6. #6
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Is there anyway I could send someone my whole databases & maybe they can help with relating my tables. It might be a wild request, but I might gain a better understanding. It's just finding the person who's able/willing their time.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    If you post a database, include an mdb version for those who don't have acc2007 or 2010. Suggest you create a zip.

  8. #8
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Please excuse my ignorance. How would I go about posting my db?

  9. #9
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    There is an Attachment box displayed below the body of your text. You can use it to upload your DB after you use the Access tools to repair and compact it. You may have to zip it if the file is too large after compacting.

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  11. #11
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thhis is my Pojects/Tasks Database. In one Table I keep track of which employee (s) works with me -- date & there hours. In another Table I track which projects I work on -- date & the amount of hours. I have 2-other Tables, 1) Employee infor & saleries & 2) Projects hourly rate. The database is designed that I'm working for someone & I get a certain percentage of the profits. That's just the basic of my datebase, but my goal is to learn/have all of my Tables be related.

    Thanks to those who are given me time!

  12. #12
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Employees/Payroll Table: Daily Task Table:
    - EmployeesPayrollID - DailyTasksID
    - EmployeeInfoID - ProjectsTableID
    - DailyTaskID - MNTH/YR
    - Employee_ID - QRTLY
    - MNTH/YR - WKDY
    - QRTLY - TDATE
    - WDAY - ProjectID
    - TDATE - APPLCTNS
    - HRS - FileName
    - D/E - NOTES/TASKS
    - DNW - HRS
    - CMPLTD

    *The 2-Tables I’ve related by the DailyTasksID
    *From these 2-Tables I want to see the camparison between A) Employes HRS & B) Projects HRS on the same TDATE
    *I pulled, MNTH/YR, TDATE, & HRS (Sum) from the Employees/Payroll Table -&- HRS (Sum) from the Projects/Tasks Table. When I tried to run the query I get, “No unique index found for the referenced field of the primary table." ...?

  13. #13
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Wait, I really screwed that thread up by trying to put my 2-Tables in 2-columns...bad move. I'll try this:

  14. #14
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    This is better:

    Employees/Payroll Table:
    - EmployeesPayrollID
    - EmployeeInfoID
    - DailyTaskID
    - Employee_ID
    - MNTH/YR
    - QRTLY
    - WDAY
    - TDATE
    - HRS
    - D/E
    - DNW

    DailyTasks Table:
    - DailyTasksID
    - ProjectsTableID
    - MNTH/YR
    - QRTLY
    - WKDY
    - TDATE
    - ProjectID
    - APPLCTN
    - FileName
    - NOTES/TASK
    - HRS
    - CMPLTD

    *The 2-Tables I’ve related by the DailyTasksID
    *From these 2-Tables I want to see the camparison between A) Employes HRS & B) Projects HRS on the same TDATE
    *I pulled, MNTH/YR, TDATE, & HRS (Sum) from the Employees/Payroll Table -&- HRS (Sum) from the Projects/Tasks Table. When I tried to run the query I get, “No unique index found for the referenced field of the primary table."

  15. #15
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Not quite sure what you are doing.

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<

    Employees/Payroll Table:
    - EmployeesPayrollID
    - EmployeeInfoID
    - DailyTaskID
    - Employee_ID
    - MNTH/YR
    - QRTLY
    - WDAY
    - TDATE
    - HRS
    - D/E
    - DNW

    DailyTasks Table:
    - DailyTasksID
    - ProjectsTableID
    - MNTH/YR
    - QRTLY
    - WKDY
    - TDATE
    - ProjectID
    - APPLCTN
    - FileName
    - NOTES/TASK
    - HRS
    - CMPLTD

    *The 2-Tables I’ve related by the DailyTasksID
    *From these 2-Tables I want to see the camparison between A) Employes HRS & B) Projects HRS on the same TDATE
    *I pulled, MNTH/YR, TDATE, & HRS (Sum) from the Employees/Payroll Table -&- HRS (Sum) from the Projects/Tasks Table. When I tried to run the query I get, “No unique index found for the referenced field of the primary table."
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
    You say you've "pulled" MNTH/YR, TDATE, & HRS (Sum). You have a query that did this and computed a sum????

    And another query that computes a sum from the Projects/Tasks Table?

    And you are trying to run a third query on what?


    Your post suggests that you have some success, but are missing the end result. Can you post the SQL from the queries you have so far?

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with message box
    By Cablenm in forum Access
    Replies: 9
    Last Post: 10-14-2011, 05:06 PM
  2. Message Box
    By BorisGomel in forum Programming
    Replies: 6
    Last Post: 04-25-2011, 02:16 PM
  3. Message Box
    By dunnmel4 in forum Programming
    Replies: 9
    Last Post: 04-12-2011, 10:44 PM
  4. SendObject Message
    By williammarino in forum Forms
    Replies: 4
    Last Post: 10-06-2009, 01:54 AM
  5. message box help
    By shaz10010 in forum Forms
    Replies: 1
    Last Post: 04-17-2009, 09:11 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