show records 1 day in advance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasone
    New Member
    • Mar 2007
    • 66

    show records 1 day in advance

    Hi,

    I am about to create a system which will alert the user of any orders which need to be processed a day in advance:

    is there a simple query to show all records in a table 1 day befor the actual date?

    Regards

    Jason
  • Umoja
    New Member
    • Nov 2006
    • 24

    #2
    Hi Jason,

    I don't understand completely the system your are trying to build but try the following. In the query under the date field, in the criteria enter

    =Date() + 1

    Hope this helps.

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      Umoja has the right idea, but people far wiser than myself warn against using the Date() +1 syntax, as they feel it will be phased out in future versions of Access! In Query Design View, make a query from your table, including the appropriate fields, and in the Criteria for the order date field, enter this:

      DateAdd("d",1,D ate())


      You can then use the query as the Record Source for a form, or run the query thru code, and it will return only records whose Order Date is the next day.

      Linq ;0)>

      Comment

      • jasone
        New Member
        • Mar 2007
        • 66

        #4
        Many thanks to both of you!

        such a simple query.... but i just couldnt work this one out :-)

        Thanks !

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Glad we could help!

          Linq ;0)>

          Comment

          Working...