locked
Query Without Present Month RRS feed

  • Question

  • Hi guys.

    Please I need someone to give me a query formulae on how to query my table to give me all records except present month.

    I don't want to use parameter as it will mean that I will always specify the duration.

    All I want is every time I open the query, it should always give me all records apart from the present month I am in.

    Thanks

    Saturday, September 3, 2016 4:11 PM

Answers

  • Thanks to you theDBguy. It worked except that I had to modify it a little bit with this

    <DateSerial(Year(Date()),Month(Date()),1)

    • Marked as answer by Engr. Clement Sunday, September 4, 2016 10:06 AM
    Sunday, September 4, 2016 10:06 AM

All replies

  • Hi. Try something like:

    Field: YourField

    Criteria: < DateSerial(Year(Date),Month(Date),1)

    Saturday, September 3, 2016 5:30 PM
  • Thanks to you theDBguy. It worked except that I had to modify it a little bit with this

    <DateSerial(Year(Date()),Month(Date()),1)

    • Marked as answer by Engr. Clement Sunday, September 4, 2016 10:06 AM
    Sunday, September 4, 2016 10:06 AM
  • Cool! Glad to hear you got it working. Good luck with your project.
    Sunday, September 4, 2016 2:27 PM