L
L Prince
I am trying to control when people can add/edit/delete
records in a subform and am getting an error message
saying that I am not referencing the property properly or
that the property doesn't exist. I can reference the
subform from inside the form events, but I need to do it
when I'm running a VBA module that does a bunch of other
stuff. I've tried various syntax and here's what I've got:
Function EditData()
Set frm = Forms!new_base
....Do stuff
Forms!new_base![Forecast subform].Form.AllowEdits = True
frm![Forecast subform].Form.AllowDeletions = True
frm![Forecast subform].Form.AllowAdditions = True
..... Do more stuff
Any advice?
TIA
records in a subform and am getting an error message
saying that I am not referencing the property properly or
that the property doesn't exist. I can reference the
subform from inside the form events, but I need to do it
when I'm running a VBA module that does a bunch of other
stuff. I've tried various syntax and here's what I've got:
Function EditData()
Set frm = Forms!new_base
....Do stuff
Forms!new_base![Forecast subform].Form.AllowEdits = True
frm![Forecast subform].Form.AllowDeletions = True
frm![Forecast subform].Form.AllowAdditions = True
..... Do more stuff
Any advice?
TIA