R
Russ
I have this application in which I roll back the 7 hours
after 12 mid night back into the previous day's shift
values using the query function that follows.
dteDate1: DateValue(DateAdd("h",-7,[dteDate]))
Now, I've assigned this new value to a function that is
passed from the active form to the (live) Main Menu form
and called to filter the records returned when reports are
run. The only thing though, is that it does not always
work. Fore example the range may be from June 01, 2003 to
August 31, 2003. But the returned records rune from some
time in April to the last known record created yesterday.
Somehow, the function does not see the value in the Main
Menu control as a Date value that is passed back to
reports underlying query criteria. Any assitance will be
appreciated.
after 12 mid night back into the previous day's shift
values using the query function that follows.
dteDate1: DateValue(DateAdd("h",-7,[dteDate]))
Now, I've assigned this new value to a function that is
passed from the active form to the (live) Main Menu form
and called to filter the records returned when reports are
run. The only thing though, is that it does not always
work. Fore example the range may be from June 01, 2003 to
August 31, 2003. But the returned records rune from some
time in April to the last known record created yesterday.
Somehow, the function does not see the value in the Main
Menu control as a Date value that is passed back to
reports underlying query criteria. Any assitance will be
appreciated.