Results 1 to 3 of 3
  1. #1
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169

    inner join query with three tables.

    Gentlemen, I am struggling to make an inner join query with three tables.



    SELECT TblComentários.Comentários, AuditTable.RecordPrimaryKey, AuditTable.FieldName, AuditTable.OriginalValue,
    AuditTable.NewValue, AuditTable.DateTimeStamp,TblPassosStatus.Passo


    Table field
    AuditTable RecordPrimaryKey
    TblComentários CodPassosStatus
    TblPassosStatus CodPassosStatus

    must do the inner join of the selected fields above, where the three fields below are equal.

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Are you attempting to write the SQL by hand? If so, why not just do it in the QBE (Query By Example) grid. It is much easier that way.

  3. #3
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    Dear boblarson, thanks for replying. honestly, I do not know how you told me. I have this query that works perfectly:

    SELECT TblComentários.Comentários, AuditTable.RecordPrimaryKey, AuditTable.FieldName, AuditTable.OriginalValue, AuditTable.NewValue, AuditTable.DateTimeStamp
    FROM AuditTable INNER JOIN TblComentários ON AuditTable.RecordPrimaryKey=TblComentários.CodPass osStatus;


    I am trying to add one more field in another table. I'm not able to make the speech. image attachment.

    Thank you.

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

Similar Threads

  1. trying to Inner Join 3 database tables
    By gregu710 in forum Queries
    Replies: 2
    Last Post: 01-17-2012, 02:42 PM
  2. Join/merge/mix tables problem
    By niculaegeorge in forum Queries
    Replies: 2
    Last Post: 07-10-2011, 08:39 AM
  3. Join 4 Tables in 1 Query
    By sandlucky in forum Queries
    Replies: 5
    Last Post: 06-12-2011, 06:28 PM
  4. Join for multiple tables?
    By Etownguy in forum Queries
    Replies: 3
    Last Post: 05-30-2011, 04:54 PM
  5. Join three or more tables in many to many link
    By elicoten in forum Database Design
    Replies: 3
    Last Post: 02-04-2010, 06:51 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