M
Matt C via AccessMonster.com
I have a main startup form
When you click a button, it brings up the "companies" form
when I click the "done" command button, it tests to see if the current record
has been changed and asks if the user wishes to confirm changes:
When exiting the companies form this way, the "enter parameter value" popup
appeas asking for [Forms]![Companies]![Company ID]
Unless the form is on a new record, any reference to this value is obtained
by the textbox on the form.
what's bizarre, is this popup only occurs when using the button, if I exit
the form with the built in [ x ] button, the popup doesn't appear (I don't
want to close forms this way as it doesn't comfirm changes.)
This lead me to beleive that there may have been a problem with the code
behind the button, but even if I comment out every last bit of code except
the DoCmd.close line, it still comes up with the popup message.
I tried creating a new button, where all it did was DoCmd.close, and even
that comes up with the error message, and yet clicking the [ x ] doesn't.
Does anyone have any ideas?
When you click a button, it brings up the "companies" form
when I click the "done" command button, it tests to see if the current record
has been changed and asks if the user wishes to confirm changes:
if changes confirmed, it saves the record then calls DoCmd.close
If changes denied, it undoes the record then calls DoCmd.close
if no changes has been made it calls Do Cmd.close
if cancel is hit, it exits the sub without any changes.
When exiting the companies form this way, the "enter parameter value" popup
appeas asking for [Forms]![Companies]![Company ID]
Unless the form is on a new record, any reference to this value is obtained
by the textbox on the form.
what's bizarre, is this popup only occurs when using the button, if I exit
the form with the built in [ x ] button, the popup doesn't appear (I don't
want to close forms this way as it doesn't comfirm changes.)
This lead me to beleive that there may have been a problem with the code
behind the button, but even if I comment out every last bit of code except
the DoCmd.close line, it still comes up with the popup message.
I tried creating a new button, where all it did was DoCmd.close, and even
that comes up with the error message, and yet clicking the [ x ] doesn't.
Does anyone have any ideas?