G
Guest
Hi
I have a problem on a subform. I have a button on the subform that opens a
report when pressed.
If i press the button once i have created a new record the report opens
blank, clearly because the record hasn't saved yet.
I tried putting
docmd.Runcommand accmdSave and
docmd.runcommand accmdSaveRecord
in the onclick events of the button.
In each case i get an error stating "The RunCommand event was canceled"
I really can't understand why it doesn't work on the subform. Any help would
be great appreciated.
Thanks
I have a problem on a subform. I have a button on the subform that opens a
report when pressed.
If i press the button once i have created a new record the report opens
blank, clearly because the record hasn't saved yet.
I tried putting
docmd.Runcommand accmdSave and
docmd.runcommand accmdSaveRecord
in the onclick events of the button.
In each case i get an error stating "The RunCommand event was canceled"
I really can't understand why it doesn't work on the subform. Any help would
be great appreciated.
Thanks