Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32

    Getting the most latest Revision (help please)

    Hi Guys,



    I need help i have two tables one to many relationship tblDocumentDrawing & tblDocumentDrawingRev...

    And im seriously having trouble getting the most recent revision?

    Guys my db is attached someone can help me please???

    Thanks
    Last edited by Kookai; 08-20-2010 at 11:36 AM.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Didn't find the mdb file.

  3. #3
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    im sorry its a different file.... ill attached it again...

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Still could not open file: DBASE 08-20-10.accdb in my Access 2003 saying "unrecognized format"
    (I renamed it to DBASE 08-20-10.mdb)

  5. #5
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    for a sec ill try to convert it to 2000 verion...

  6. #6
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    Hi, i cant save it in earlier version as there object that has none in the latter....dont u have 2007??

  7. #7
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I have only Access 2003

    can you use "convert database" to convert it to early version?
    In 2003, it is: Tools -> Database utilities -> convert database ->(early versions)

    Or just give more detail to see if I can figure out what is in your tables

  8. #8
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I assume your tables are like these:
    DocID, DocDetails in table tblDocumentDrawing,
    DocID, RevDate in table tblDocumentDrawingRev.
    and you want to get docDetails and most recent RevDate.

    First, create a query to get the latest RevDate:
    select docID, max(RevDate) as RevDate from tblDocumentDrawingRev

    Then get the details:
    select a.DocID, a.DocDetails, b.RevDate from tblDocumentDrawing as a inner join tblDocumentRev as b on a.DocID=b.docID

  9. #9
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    Hi Still Cant convert it.... i will print screen the relationship i have and the tables that is concerned...

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Does this work for you?

    http://www.baldyweb.com/LastValue.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    Quote Originally Posted by pbaldy View Post

    Actually, im a newbie and cant understand much of what u have sent

  12. #12
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    Quote Originally Posted by weekend00 View Post
    I assume your tables are like these:
    DocID, DocDetails in table tblDocumentDrawing,
    DocID, RevDate in table tblDocumentDrawingRev.
    and you want to get docDetails and most recent RevDate.

    First, create a query to get the latest RevDate:
    select docID, max(RevDate) as RevDate from tblDocumentDrawingRev

    Then get the details:
    select a.DocID, a.DocDetails, b.RevDate from tblDocumentDrawing as a inner join tblDocumentRev as b on a.DocID=b.docID
    I just had it in print screen,....

  13. #13
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    i have tblDocumentDrawing with fields...
    DocID, Ref1, Ref2, Subject

    and tblDocumentDrawingRev with fields
    DocumentDrawingRevID,fkRevisiontransmittal,fkDocum entdrawingID,revisionNo, revdate,revstatus

    I want to get the document details which is Ref1,ref2,subject,rev,rev dte, revstatus...

    Ref1 & ref2 have many revisions and i want to pull out the most latest one....

  14. #14
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I think your two table are similar to my example ones. So, just change the fields names in my queries and add the fields you want to the result.

  15. #15
    Kookai is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    32
    Quote Originally Posted by weekend00 View Post
    I think your two table are similar to my example ones. So, just change the fields names in my queries and add the fields you want to the result.
    hi can you send it to me step by step please.... im going to design query and .....

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

Similar Threads

  1. Latest Transaction Report
    By Worm in forum Reports
    Replies: 3
    Last Post: 08-16-2010, 06:10 AM
  2. Query latest record
    By asherbear in forum Queries
    Replies: 5
    Last Post: 08-02-2010, 03:58 PM
  3. Selecting Most Current 'Revision'
    By Nola_Gal in forum Queries
    Replies: 5
    Last Post: 05-29-2010, 12:48 AM
  4. Latest Date Records
    By Rick West in forum Queries
    Replies: 1
    Last Post: 09-25-2009, 11:16 AM
  5. Replies: 2
    Last Post: 12-09-2005, 01:58 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