C
Chad Cameron
Hi All,
I have a query called DataSum. In this query I am summing all the hours
that a peice of equipment is used. In my report, it displays a summary of
each piece of equipment and the total hours used in the DB.
I created a form so that the user can specify the date range to use. I have
2 variables txtFromDate & txtToDate.
Now I want to filter my report by these 2 dates. It doesn't work, but I am
just guessing here. Could someone point me in the right direction.
Thanks
Chad
DoCmd.OpenReport Form_MainForm.ReportName, acPreview, , "Date Between " &
txtFromDate & " and " & txtToDate
I think my problem is that I don't have a date field in my query. When I
do, my query no longer sums properly. I think it sums for each day, which I
don't want. I guess I need to know how to filter the data without have the
date field in there.
I have a query called DataSum. In this query I am summing all the hours
that a peice of equipment is used. In my report, it displays a summary of
each piece of equipment and the total hours used in the DB.
I created a form so that the user can specify the date range to use. I have
2 variables txtFromDate & txtToDate.
Now I want to filter my report by these 2 dates. It doesn't work, but I am
just guessing here. Could someone point me in the right direction.
Thanks
Chad
DoCmd.OpenReport Form_MainForm.ReportName, acPreview, , "Date Between " &
txtFromDate & " and " & txtToDate
I think my problem is that I don't have a date field in my query. When I
do, my query no longer sums properly. I think it sums for each day, which I
don't want. I guess I need to know how to filter the data without have the
date field in there.