Results 1 to 3 of 3
  1. #1
    tombsy is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    2

    Simple Query

    I have a simple query that I just cannot get to work.

    Fields......
    ID (Primary)
    Station (duplicates)


    Offset
    X
    Y
    Z

    I want 1 record for station using the minimum X value.

    EX: if (Station/X) are 20/2 20/3 20/4 20/6, I want one record to show 20/2 only. Make sense?

    I tried using the Min function but its not working properly.

    Thanks

  2. #2
    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,847
    What exactly isn't working? What error message did you get?
    Please show us the SQL for the query.

  3. #3
    tombsy is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    2
    I figured it out. I removed the ID (Primary field) and it worked.

    Thanks

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

Similar Threads

  1. Simple query help
    By Subhunter in forum Queries
    Replies: 9
    Last Post: 11-19-2010, 03:32 PM
  2. need help with this simple query
    By dada in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 07:08 AM
  3. simple query
    By taylorosso in forum Queries
    Replies: 1
    Last Post: 10-06-2009, 04:26 AM
  4. Need Help with a very simple query
    By bikerguy06 in forum Queries
    Replies: 3
    Last Post: 06-08-2009, 08:43 PM
  5. Help with a simple query
    By JohnnyO in forum Queries
    Replies: 1
    Last Post: 02-11-2009, 09:43 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