G
Guest
I created this code in a control source for text box
=DCount("[Fname]","SignInQry"," [TimeIn] Between #5:00:00pm# and_
#7:59:59pm# and [Date]= Date() -6 ")
Basically this is totalling the number of students from 5 to 7pm and on the
current date -6 days.
I need help changing the end of this code. Instead of using date() I would
like it to use the date entered from a date parameter query. So, if I enter
10/07/05 in the parameter popup It would then subtract 6 days from that for
the value.
I tried this basic change but got #error for the value
=DCount("[Fname]","SignInQry"," [TimeIn] Between #5:00:00pm# and_
#7:59:59pm# and [Date]= -6 ")
If this is not possible can I have a unbound textbox where the user would
enter a date then refresh and then code would subtract 6 days from the text
boxes value?
The part of the code that creates a total between times works fine
Thank you
David
=DCount("[Fname]","SignInQry"," [TimeIn] Between #5:00:00pm# and_
#7:59:59pm# and [Date]= Date() -6 ")
Basically this is totalling the number of students from 5 to 7pm and on the
current date -6 days.
I need help changing the end of this code. Instead of using date() I would
like it to use the date entered from a date parameter query. So, if I enter
10/07/05 in the parameter popup It would then subtract 6 days from that for
the value.
I tried this basic change but got #error for the value
=DCount("[Fname]","SignInQry"," [TimeIn] Between #5:00:00pm# and_
#7:59:59pm# and [Date]= -6 ")
If this is not possible can I have a unbound textbox where the user would
enter a date then refresh and then code would subtract 6 days from the text
boxes value?
The part of the code that creates a total between times works fine
Thank you
David