M
M Skabialka
An Access 97 database that has worked for years suddenly says "can't find
the field 'DoCmd' referred to in your expression" when this line of code
runs:
DoCmd.OpenReport stDocName, acPreview
This form runs a dozen reports; the code is the same for every one but some
work and some give this error message, all from modules on the same form!
I checked an old backup copy of the database and the references haven't
changed. I haven't changed any software either. In fact I haven't changed
this form in ages, and the 3 months old backup of the form gives the same
messages.
Debugging and compiling doesn't work either. Nor does decompiling then
recompiling..
What would cause code to run sometimes and not others for the same form,
same code?
Help!
Mich
the field 'DoCmd' referred to in your expression" when this line of code
runs:
DoCmd.OpenReport stDocName, acPreview
This form runs a dozen reports; the code is the same for every one but some
work and some give this error message, all from modules on the same form!
I checked an old backup copy of the database and the references haven't
changed. I haven't changed any software either. In fact I haven't changed
this form in ages, and the 3 months old backup of the form gives the same
messages.
Debugging and compiling doesn't work either. Nor does decompiling then
recompiling..
What would cause code to run sometimes and not others for the same form,
same code?
Help!
Mich