jt463
IS-IT--Management
- Nov 23, 2005
- 134
I have a table that has an activity start date (actstart) and an activity end date (actend). My users have the ability to select a report start date (rptstart).
I want to query my recordset to extract all records where the rptstart falls within the actstart and actend range.
For example (activity, actstart, actend):
"Hang Drywall", #09/01/06#, #09/03/06#
"Install Cabinets", #09/02/06#, #09/02/06#
"Paint Drywall", #09/04/06#, #09/05/06#
rptstart = #09/02/06#
I would want my report to show: "Hang Drywall, Install Cabinets" for my 9/2/06 date.
So, for my select statement, I am stuck on how to code the criteria.
I am toying with a BETWEEN statement, but I am not coming up with one. Really, I want to pull all records where the rptstart is BETWEEN the actstart and actend dates, but that goes against the way I understand Select statements. I would need to go at it from the actual field names on my recordset and then try to tie it in to my rptstart criteria.
Help!
I want to query my recordset to extract all records where the rptstart falls within the actstart and actend range.
For example (activity, actstart, actend):
"Hang Drywall", #09/01/06#, #09/03/06#
"Install Cabinets", #09/02/06#, #09/02/06#
"Paint Drywall", #09/04/06#, #09/05/06#
rptstart = #09/02/06#
I would want my report to show: "Hang Drywall, Install Cabinets" for my 9/2/06 date.
So, for my select statement, I am stuck on how to code the criteria.
I am toying with a BETWEEN statement, but I am not coming up with one. Really, I want to pull all records where the rptstart is BETWEEN the actstart and actend dates, but that goes against the way I understand Select statements. I would need to go at it from the actual field names on my recordset and then try to tie it in to my rptstart criteria.
Help!