Results 1 to 2 of 2
  1. #1
    Overdive is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2009
    Posts
    9

    Query for latest date? what am I doing wrong?

    Hello



    So I have 2 tables: Metals and Price

    I made a query to pull only the records from METAL based on the latest date (using the total button then selecting "Last" from the criteria for all the fields-this was the only way that it will actualy select, if I only use MAX or LAST for the date field it will just pull up all the records from the METAL table which I am not sure why it does that)

    I made another query to do the same from the PRICE table, however if I do use MAX or LAST it doesnt match the correct rows, it mixes the rows which is incorrect.

    any input of how I can fix it? I researched on many websites and all it said is to use MAX and it should select the appropriate row that has the latest date...

  2. #2
    tingletangle is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2009
    Posts
    4

    Query for latest date? what am I doing wrong?

    Hello,

    i would suggest the following: Try to keep the query more simple ! Just select two output fields. the id of the item and the Date field.
    Set the on the date the max function.
    Does it work now ? If so you can create a second query. Add the first query to that as well as the price table. Link the ID fields and show the fields as required.

    bye
    Markus

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

Similar Threads

  1. What is wrong with this code?
    By nkenney in forum Forms
    Replies: 2
    Last Post: 11-16-2009, 03:04 PM
  2. Latest Date Records
    By Rick West in forum Queries
    Replies: 1
    Last Post: 09-25-2009, 11:16 AM
  3. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  4. What am I doing wrong?
    By brandon in forum Access
    Replies: 2
    Last Post: 08-03-2008, 10:26 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