G
gdonald20
Hi
I have a problem on a sub form.
On the subform i have a button that opens a report. Obviously if the user
presses the button without moving onto the next record, the report opens
blank because the sub-form record hasn't saved.
I have tried 2 ways to fix this problem with no success so far.
Firstly on the code for the button i put in docmd.runcommand acCmdSaveRecord.
This didn't work.
Then i tried putting
If me.dirty then
me.dirty = false
End If
Now when i press the button i get the error message
"The setting you entered isn't valid for this property"
The report doesn't open and the database crashed.
Any help would be greatly appreciated.
Thanks
Gillian
I have a problem on a sub form.
On the subform i have a button that opens a report. Obviously if the user
presses the button without moving onto the next record, the report opens
blank because the sub-form record hasn't saved.
I have tried 2 ways to fix this problem with no success so far.
Firstly on the code for the button i put in docmd.runcommand acCmdSaveRecord.
This didn't work.
Then i tried putting
If me.dirty then
me.dirty = false
End If
Now when i press the button i get the error message
"The setting you entered isn't valid for this property"
The report doesn't open and the database crashed.
Any help would be greatly appreciated.
Thanks
Gillian