Hi,
I have a button which opens a form. The form is currently edit-able, and has to be a lot of the time, but when its opened through this particular route I need it to be read only.
I have tried:
stDocName = "FrmName"
DoCmd.OpenForm stDocName
Form.FrmName.AllowAdditions False
Form.FrmName.AllowDeletions False
Form.FrmName.AllowEdits False
but it comes up with an error. I think im not calling the form correctly, but im not too sure.
Any help would be greatly appreciated.
Thank you!
I have a button which opens a form. The form is currently edit-able, and has to be a lot of the time, but when its opened through this particular route I need it to be read only.
I have tried:
stDocName = "FrmName"
DoCmd.OpenForm stDocName
Form.FrmName.AllowAdditions False
Form.FrmName.AllowDeletions False
Form.FrmName.AllowEdits False
but it comes up with an error. I think im not calling the form correctly, but im not too sure.
Any help would be greatly appreciated.
Thank you!