R
rashar via AccessMonster.com
Hello,
I have a form called FormA that allows a user to enter a quantity. If they
enter a quantity of say greater than 5, another form pops up. What I want to
accomplish is when FormB pops up I don't want the user to be able to edit
FormA until FormB is closed.
Here is what I've tried.
'When Quantity > 5 then...
Me.AllowEdits = False
DoCmd.OpenForm "FormB"
'On the close event of form B, set AllowEdits on FormA to true to resume
editing...
Dim frm As Form
Set frm = Forms!FormA
frm.AllowEdits = True
After running the above logic no errors are returned, however, I am unable to
edit FormA.
Thanks in advance.
I have a form called FormA that allows a user to enter a quantity. If they
enter a quantity of say greater than 5, another form pops up. What I want to
accomplish is when FormB pops up I don't want the user to be able to edit
FormA until FormB is closed.
Here is what I've tried.
'When Quantity > 5 then...
Me.AllowEdits = False
DoCmd.OpenForm "FormB"
'On the close event of form B, set AllowEdits on FormA to true to resume
editing...
Dim frm As Form
Set frm = Forms!FormA
frm.AllowEdits = True
After running the above logic no errors are returned, however, I am unable to
edit FormA.
Thanks in advance.