G
Guest
Hi All,
I have a report rptIncidents based on a query
(qryIncidentRpt) which joins two tables -tblIncident and
tblInjury (note all Incidents have a related Injury). The
report works fine by itself.
I want to set up a form to make choices via combo boxes as
to what data is reported ie for a particular date
If I use
DoCmd.OpenReport stDocName, acViewPreview, , "Date = " &
txtDateStart
It seems like I am comparing strings. If I use = the
report contains no data
If I use < the report contains no data. If I use > the
report contains all the data
txtDateStart is an unbound field formatted as short date
eg entry I'm testing with 01-01-04
Thanks again for the invaluable assistance given here
Gail
I have a report rptIncidents based on a query
(qryIncidentRpt) which joins two tables -tblIncident and
tblInjury (note all Incidents have a related Injury). The
report works fine by itself.
I want to set up a form to make choices via combo boxes as
to what data is reported ie for a particular date
If I use
DoCmd.OpenReport stDocName, acViewPreview, , "Date = " &
txtDateStart
It seems like I am comparing strings. If I use = the
report contains no data
If I use < the report contains no data. If I use > the
report contains all the data
txtDateStart is an unbound field formatted as short date
eg entry I'm testing with 01-01-04
Thanks again for the invaluable assistance given here
Gail