Hello all,
I am trying to do some database functions and I'm having difficult with using dates as criteria.
Here is some sample data and the criteria that I'm trying to do:
Sample Data:
Officer: Denise Heppler
ChargeType: DV
Sex: M
OpenDate: 1
Odate: 5/9/2002
Complete: blank
Cdate: blank
Officer: Peter Boyles
ChargeType: DV
Sex: M
OpenDate: 1
Odate: 5/2/2002
Complete: blank
Cdate: blank
Officer: Terese Hauge
ChargeType: District
Sex: M
OpenDate: 1
ODate: 5/29/2002
Complete: 1
Cdate: 5/31/2002
Named criteria range:
Name:cr_SCASES
Criteria: Officer = David Martinez AND OpenDate = 1 AND Odate <= sdate
sdate is a named range that is populated with 5/1/2002. I need to know the number of open cases at the beginning of the month.
I then need the number of cases closed in the month
Name: cr_CLOSE
Criteria:
Officer = David Martinez AND Completed = 1 AND cdate<= edate
How can I use dates as a database function criteria?
Thanks,
leslie
I am trying to do some database functions and I'm having difficult with using dates as criteria.
Here is some sample data and the criteria that I'm trying to do:
Sample Data:
Officer: Denise Heppler
ChargeType: DV
Sex: M
OpenDate: 1
Odate: 5/9/2002
Complete: blank
Cdate: blank
Officer: Peter Boyles
ChargeType: DV
Sex: M
OpenDate: 1
Odate: 5/2/2002
Complete: blank
Cdate: blank
Officer: Terese Hauge
ChargeType: District
Sex: M
OpenDate: 1
ODate: 5/29/2002
Complete: 1
Cdate: 5/31/2002
Named criteria range:
Name:cr_SCASES
Criteria: Officer = David Martinez AND OpenDate = 1 AND Odate <= sdate
sdate is a named range that is populated with 5/1/2002. I need to know the number of open cases at the beginning of the month.
I then need the number of cases closed in the month
Name: cr_CLOSE
Criteria:
Officer = David Martinez AND Completed = 1 AND cdate<= edate
How can I use dates as a database function criteria?
Thanks,
leslie