CHAOSinACT
Registered User.
- Local time
- Tomorrow, 04:34
- Joined
- Mar 18, 2009
- Messages
- 235
couple of quick questions....(same project as last time to those who helped) all going great, trying to sort the (now working) results a little more, first was by job number, now needs to be by job number and a DATE RANGE.
was originally filtering my recordset (successfully) with this (the debug.print return from the vba statement):
JobNumber Like '001*'
trying to work this into it:
JobNumber Like '001*' And ActivityDate = Between '#1/01/2000#' And '#06/30/2010#'
but not too sure on the syntax with the between statement in vba (its clear enough in the UI)
we're on a European date system (day/month/year) and use that in the UI, i've read i need to use (month/day/year) in vba, am doing so (let me know if i'm wrong there).
the above included date range gives me a missing operator error, i've tried a few variations on the way. i assume that having multiple filters in the .filter property of a recordset is ok?
thanks to all
was originally filtering my recordset (successfully) with this (the debug.print return from the vba statement):
JobNumber Like '001*'
trying to work this into it:
JobNumber Like '001*' And ActivityDate = Between '#1/01/2000#' And '#06/30/2010#'
but not too sure on the syntax with the between statement in vba (its clear enough in the UI)
we're on a European date system (day/month/year) and use that in the UI, i've read i need to use (month/day/year) in vba, am doing so (let me know if i'm wrong there).
the above included date range gives me a missing operator error, i've tried a few variations on the way. i assume that having multiple filters in the .filter property of a recordset is ok?
thanks to all
