Else: DoCmd.OpenForm "frmAddEditProducts", acNormal
DoCmd.MoveSize 200, 2000, 15000 'if password is true then widen form
frmAddEditProducts.Form.AllowAdditions = True
frmAddEditProducts.Form.AllowDeletions = True
frmAddEditProducts.Form.AllowEdits = True
Debugger comes up regarding the last three lines, what am I doing wrong? Can I even do this?
I have a form open with additions/deletions/edits set to false, a button is clicked and a password form comes up (which the code above is in) if the correct pass is entered the above is run. I want the additions/deletions/edits set to true.
I've tried:
frmAddEditProducts.Form.AllowAdditions and frmAddEditProducts.AllowAdditions
Either its a simple error or I'm trying to do it the wrong way!
Thanks!
DoCmd.MoveSize 200, 2000, 15000 'if password is true then widen form
frmAddEditProducts.Form.AllowAdditions = True
frmAddEditProducts.Form.AllowDeletions = True
frmAddEditProducts.Form.AllowEdits = True
Debugger comes up regarding the last three lines, what am I doing wrong? Can I even do this?
I have a form open with additions/deletions/edits set to false, a button is clicked and a password form comes up (which the code above is in) if the correct pass is entered the above is run. I want the additions/deletions/edits set to true.
I've tried:
frmAddEditProducts.Form.AllowAdditions and frmAddEditProducts.AllowAdditions
Either its a simple error or I'm trying to do it the wrong way!
Thanks!