G
google3luo359
Hello, I would like to clear the value in a control on a form that is
open (Form1)
Form1 stays open while work is done on a second form, Form2.
When Form2 is closed I would like to clear the value in the control on
Form1.
I tried:
Forms![frmPass]![txtPassword] = ""
It worked; when I returned to Form1, the control had been cleared but
when I tried to enter data into the control I received this error:
The data has been changed. Another user edited this record and saved
the changes before you attempted to save your changes. Re-edit the
record. OK.
I can, edit the control after clearing this error message but would
like to avoid getting the error message.
I tried putting 'DoCmd.SetWarnings False' into OnEnter and OnChange
Events, but it didn't help.
Is there a more effective way to clear the control AND not have error
messages occur?
TIA Ric
open (Form1)
Form1 stays open while work is done on a second form, Form2.
When Form2 is closed I would like to clear the value in the control on
Form1.
I tried:
Forms![frmPass]![txtPassword] = ""
It worked; when I returned to Form1, the control had been cleared but
when I tried to enter data into the control I received this error:
The data has been changed. Another user edited this record and saved
the changes before you attempted to save your changes. Re-edit the
record. OK.
I can, edit the control after clearing this error message but would
like to avoid getting the error message.
I tried putting 'DoCmd.SetWarnings False' into OnEnter and OnChange
Events, but it didn't help.
Is there a more effective way to clear the control AND not have error
messages occur?
TIA Ric