M
Miaplacidus
I have a View/Edit button on my form that restricts the
data that each department is allowed to edit. In the code
on the event for that button is the following line:
Forms![Supervisors]![Employees3].Form.AllowEdits = True
It gives the error message:
You entered an expression that has an improper reference
to the property Form/Report.
In the on open event of the form I have the following code
which does not give an error:
Forms![Supervisors]![Employees3].Form.AllowEdits = False
In addition I have another copy of this database where the
same code runs without error.
I cannot find any differences in the names of the forms or
the containers that might have been introduced. The forms
appear exactly the same. I have examined the properties of
the forms and subforms and cannot find any differences.
The code for the working form is exactly the same as the
non-working one. I copied it to the non-working form and
replaced the existing code and it gives the same message.
I have not yet copied the entire working form, code and
all. The working form is in my unsecured copy of the
database. If I copy it over, will it cause ownership
problems? Without copying the working form, how can I
determine what the correct references should be?
data that each department is allowed to edit. In the code
on the event for that button is the following line:
Forms![Supervisors]![Employees3].Form.AllowEdits = True
It gives the error message:
You entered an expression that has an improper reference
to the property Form/Report.
In the on open event of the form I have the following code
which does not give an error:
Forms![Supervisors]![Employees3].Form.AllowEdits = False
In addition I have another copy of this database where the
same code runs without error.
I cannot find any differences in the names of the forms or
the containers that might have been introduced. The forms
appear exactly the same. I have examined the properties of
the forms and subforms and cannot find any differences.
The code for the working form is exactly the same as the
non-working one. I copied it to the non-working form and
replaced the existing code and it gives the same message.
I have not yet copied the entire working form, code and
all. The working form is in my unsecured copy of the
database. If I copy it over, will it cause ownership
problems? Without copying the working form, how can I
determine what the correct references should be?