G
Guest
I have some VBA coding (in form_current) that sets allowedits for a sub-form
depending on certain conditions. The coding looks like:
DDAssigned.Form.AllowEdits = True
where DDAssigned is the control name of the sub-form on the main form. This
works fine, except when the user is viewing the main form in datasheet view.
In this case I get the error:
2455
"You entered an expression that has an invalid reference to the property
Form/Report"
The problem is that in datasheet view the user can click the "+" sign on the
left edge of the form to see and manipulate the sub-form.
So, I guess I either need to find a way to set the permissions of the
sub-form in datasheet view (preferred), or find a way to removed the "+" from
the form in datasheet view.
Thanks.
Regards,
Leif
depending on certain conditions. The coding looks like:
DDAssigned.Form.AllowEdits = True
where DDAssigned is the control name of the sub-form on the main form. This
works fine, except when the user is viewing the main form in datasheet view.
In this case I get the error:
2455
"You entered an expression that has an invalid reference to the property
Form/Report"
The problem is that in datasheet view the user can click the "+" sign on the
left edge of the form to see and manipulate the sub-form.
So, I guess I either need to find a way to set the permissions of the
sub-form in datasheet view (preferred), or find a way to removed the "+" from
the form in datasheet view.
Thanks.
Regards,
Leif