I've got a button on frm_Main that opens a sub-form without closing frm_Main. If I input a new record into frm_main and then click the button to go to the sub-Form, the sub-form doesn't recognize the new record I input in frm_Main (because it's not saved yet obviously). What VB code will work to automatically save the new record in frm_Main when I click the sub-form button. Here's a few things I've tried that doesn't seem to work.
docmd.refresh
runcommand (accmdsave)
application.runcommand (accmdsave)
me.application.runcommand (accmdsave)
I've tried all of these lines in the command button code before
DoCmd.OpenForm stDocName, , , stLinkCriteria
is executed and none of them seem to work.
Any suggestions?
docmd.refresh
runcommand (accmdsave)
application.runcommand (accmdsave)
me.application.runcommand (accmdsave)
I've tried all of these lines in the command button code before
DoCmd.OpenForm stDocName, , , stLinkCriteria
is executed and none of them seem to work.
Any suggestions?