P
Paul
Hi,
I am trying to save a record on a parent form using code.
The code is basically.
me.form.parent.setfocus
runcommand accmdsaverecord
This always results in an error "record cannot be saved now" and the record
remains unsaved.
I have added the Save Record button to the toolbar, and that saves the
record just fine (so it is not a case of mandatory fields not being
completed).
What are alternate ways in code of saving the record currently displayed on
a given form?
As the Save Record button is not on the standard menus (you have to
customise) docmd domenuitem is not going to help.
I'm about to resort to a Shift+Return via sendkeys, but that is pretty
nasty.
Any suggestions would be greatly appreciated.
TIA
Paul
I am trying to save a record on a parent form using code.
The code is basically.
me.form.parent.setfocus
runcommand accmdsaverecord
This always results in an error "record cannot be saved now" and the record
remains unsaved.
I have added the Save Record button to the toolbar, and that saves the
record just fine (so it is not a case of mandatory fields not being
completed).
What are alternate ways in code of saving the record currently displayed on
a given form?
As the Save Record button is not on the standard menus (you have to
customise) docmd domenuitem is not going to help.
I'm about to resort to a Shift+Return via sendkeys, but that is pretty
nasty.
Any suggestions would be greatly appreciated.
TIA
Paul