+ Reply to Thread
Results 1 to 4 of 4

Query Help- Need one row per Unique Identifier

  1. #1
    Registered User
    Join Date
    08-14-2014
    Location
    providence, RI
    MS-Off Ver
    2010
    Posts
    8

    Query Help- Need one row per Unique Identifier

    Hello All!

    I have the following Query (I used the wizard in Excel):
    Query.JPG


    For each Unique ID there could be multiple rows because the item was requoted, repackaged, or various other things may have happened to this project.

    What I want is 1 row for each Unique ID # based on the most recent Cost Date.

    Can you help? This query was written using the query wizard in Excel and is linking to an Access Database. I tried using JOIN and I got an error.

    Thank you!
    Last edited by KMJG; 03-13-2015 at 09:50 AM.

  2. #2
    Forum Contributor
    Join Date
    06-11-2014
    MS-Off Ver
    Office 2003, 2007 & 2010
    Posts
    119

    Re: Query Help- Need one row per Unique Identifier

    Had this issue a while back and used this post:

    http://stackoverflow.com/questions/4...cent-date-item

    Haven't tried it using your details but it worked for me, just add your sort and filters

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-14-2014
    Location
    providence, RI
    MS-Off Ver
    2010
    Posts
    8

    Re: Query Help- Need one row per Unique Identifier

    Thank you! I just tried this and am getting an error message:
    Query error.JPG
    Query 2.JPG
    Attached Images Attached Images
    Last edited by KMJG; 03-13-2015 at 11:10 AM.

  4. #4
    Forum Contributor
    Join Date
    06-11-2014
    MS-Off Ver
    Office 2003, 2007 & 2010
    Posts
    119

    Re: Query Help- Need one row per Unique Identifier

    Looks like you've taken the code literally as it was on the Stack Overflow page, you are requesting results of Unique ID that equal an unassigned value variable. Your query is basically leaving out the other side of the WHERE equation.

    Something like this may work, please bear in mind I can't test any of this:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-29-2015, 04:08 PM
  2. Unique Identifier
    By mussonip in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-07-2014, 10:46 AM
  3. Unique identifier for a row
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2010, 11:52 PM
  4. Unique identifier
    By Steve Barnett in forum Excel General
    Replies: 19
    Last Post: 01-06-2006, 07:30 AM
  5. [SOLVED] Unique identifier
    By Steve Barnett in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1