P
PeteCresswell
In VBA behind a form, I'm doing a DoCmd.DoMenuItem acFormBar, acFile,
acSaveRecord before updating the back end from the work table the
form is based on.
It works... sort of....
The rub comes when stepping though code. It throws a "2046: The
command or action 'SaveRecord' isn't available now" - which makes
sense, seein that I'm in a code window and not the form.
Sounds like I'm being sloppy but this is the only way I know.
Is there a more robust way to make sure that values in the fields on
my form are flushed to the work table before I do something that
assumes they are?
acSaveRecord before updating the back end from the work table the
form is based on.
It works... sort of....
The rub comes when stepping though code. It throws a "2046: The
command or action 'SaveRecord' isn't available now" - which makes
sense, seein that I'm in a code window and not the form.
Sounds like I'm being sloppy but this is the only way I know.
Is there a more robust way to make sure that values in the fields on
my form are flushed to the work table before I do something that
assumes they are?