Query: Start of month to yesterday

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nightspeace
    New Member
    • Aug 2007
    • 3

    Query: Start of month to yesterday

    Hello Everyone,

    I am currently having problems setting up a query that will pull records from the start of the month to the preivious day. In design veiw I am trying to set up a between statement that will update dymamically so I will not need to make a change manually each reporting period week.

    ie:

    Criteria: Between ( ) and Date()-1

    Thanks for the Help

    Mark
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    If you're looking for an expression that will return the first day of the current month, then

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

    should do it.

    Welcome to TheScripts!

    Linq ;0)>

    Comment

    Working...