S
SDMaryanne
I created an Access db 4 years ago, and it's been running perfectly until
today. The opening criteria form has 7 text boxes that can be filled in or
left blank. The first is for location, the next 2 are starting & ending
dates, the last 4 are other criteria like document number or item
description. When the fields are filled out, there is a command button to
"get selected records." This runs a dynamic query and then displays the
report.
The location has two choices, PLC or OTC. If I enter OTC, it runs fine and
the report displays. However, now if I enter PLC, I get a run-time error
'94': invalid use of Null. I get the same error if I enter a value for a
start date. However, if I leave these fields blank and specify criteria in
any of the bottom 4 boxes, everything runs fine. When I get the run-time
error, the underlying query can be seen, but the report doesn't display.
If I enter a value in the end date box, I get a different run-time error
'3075': syntax error in date in query expression '7#. (when I entered 1/1/07
for the end date)
I've done nothing to the code, and can't for the life of me, figure out
what's going on. Anyone have any suggestions??? Thanks for your help
today. The opening criteria form has 7 text boxes that can be filled in or
left blank. The first is for location, the next 2 are starting & ending
dates, the last 4 are other criteria like document number or item
description. When the fields are filled out, there is a command button to
"get selected records." This runs a dynamic query and then displays the
report.
The location has two choices, PLC or OTC. If I enter OTC, it runs fine and
the report displays. However, now if I enter PLC, I get a run-time error
'94': invalid use of Null. I get the same error if I enter a value for a
start date. However, if I leave these fields blank and specify criteria in
any of the bottom 4 boxes, everything runs fine. When I get the run-time
error, the underlying query can be seen, but the report doesn't display.
If I enter a value in the end date box, I get a different run-time error
'3075': syntax error in date in query expression '7#. (when I entered 1/1/07
for the end date)
I've done nothing to the code, and can't for the life of me, figure out
what's going on. Anyone have any suggestions??? Thanks for your help