Results 1 to 3 of 3
  1. #1
    AccessSHELL is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2020
    Location
    U.S.
    Posts
    58

    Question Trying to get one record

    I have a table with the followings columns:


    Year, Month, Day, mics info.
    I am trying to write a query where I get one one record. The requirements is that the record is lowest year number. In my attempts I get just one year, but with several records. It happens to be the same number of records for that lowest number year.

    Can someone advise me what I am missing?

    Thanks

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    without knowing what you are trying, can't say what you are missing

    Year, Month and Day are all reserved words and should not be used for field names

    best I can suggest is

    SELECT min([Year]) from myTable

    if this does not solve the problem, provide example data and the result required from that example data

  3. #3
    AccessSHELL is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2020
    Location
    U.S.
    Posts
    58
    Works great. Thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 08-12-2020, 12:27 AM
  2. Replies: 5
    Last Post: 08-18-2018, 10:23 AM
  3. Replies: 4
    Last Post: 10-21-2017, 09:56 AM
  4. Replies: 4
    Last Post: 05-27-2016, 10:02 AM
  5. Replies: 4
    Last Post: 01-12-2016, 02:49 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