Results 1 to 4 of 4
  1. #1
    cvegas is offline Novice
    Windows XP Access 2000
    Join Date
    Apr 2011
    Location
    Boulder City, NV
    Posts
    13

    Help with getting correct set of records

    I want to query my table based on the last 30 days of records.

    There is a record in the table for every day of the week except Sundays and holidays.



    I would like to use the Date picker and after selecting a date then query the table to find the last 30 records (in descending date order) from the selected date.

    Any suggestions would be appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Create a query that gets records in the correct order, then either go into the query properties and set the Top Values property, or in SQL view change SELECT... to SELECT TOP 30...
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    cvegas is offline Novice
    Windows XP Access 2000
    Join Date
    Apr 2011
    Location
    Boulder City, NV
    Posts
    13
    Worked like a charm
    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help, and greetings from northern NV.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  2. dcount syntax correct?
    By lbgtp in forum Reports
    Replies: 2
    Last Post: 12-29-2010, 10:01 AM
  3. Table relationships correct?
    By monkeyhead in forum Database Design
    Replies: 2
    Last Post: 12-07-2010, 02:22 PM
  4. cannot pull the correct record
    By simba in forum Reports
    Replies: 1
    Last Post: 11-30-2010, 10:45 AM
  5. What is the correct syntax for
    By giladweil in forum Access
    Replies: 1
    Last Post: 07-29-2010, 04:56 AM

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