M
M Skabialka
A form I have used for years in various versions of Access, now Access 2000
(for 2 yrs) suddenly gives me error 2455: "You entered an expression that
has an invalid reference to the property Form/Report."
I open Form1, which opens Form 2. I use Form 2 to update data for subForm1
on Form 1, then Form 2 closes.
subForm1 is not bound, so there is no control name for each field, only the
Field name.
The code which worked until now is:
Forms!Form1!subForm1.Controls(Me!ChartLocation) = "X"
where Me!ChartLocation = e.g. "X3Y4" representing a field on a chart on
subForm1 using XY co-ordinates, therefore:
Forms!Form1!subForm1.Controls("X3Y4") = "X"
which used to work as though it was
Forms!Form1!subForm1!X3Y4 = "X"
Now I get the error 2455.
I store the ChartLocation information only ("X3Y4"), and use it to place the
X on the chart.
Assuming I can't refer to the Control Name of the subForm1 field since it
isn't bound, how can I change it on subForm 1 so that it is up-to-date when
Form2 closes?
Sorry if this seems confusing - I am confused that it has been working so
long (even last week!) and now doesn't.
And all posts on newsgroups etc seem to have no resolution....
Thanks,
Mich
(for 2 yrs) suddenly gives me error 2455: "You entered an expression that
has an invalid reference to the property Form/Report."
I open Form1, which opens Form 2. I use Form 2 to update data for subForm1
on Form 1, then Form 2 closes.
subForm1 is not bound, so there is no control name for each field, only the
Field name.
The code which worked until now is:
Forms!Form1!subForm1.Controls(Me!ChartLocation) = "X"
where Me!ChartLocation = e.g. "X3Y4" representing a field on a chart on
subForm1 using XY co-ordinates, therefore:
Forms!Form1!subForm1.Controls("X3Y4") = "X"
which used to work as though it was
Forms!Form1!subForm1!X3Y4 = "X"
Now I get the error 2455.
I store the ChartLocation information only ("X3Y4"), and use it to place the
X on the chart.
Assuming I can't refer to the Control Name of the subForm1 field since it
isn't bound, how can I change it on subForm 1 so that it is up-to-date when
Form2 closes?
Sorry if this seems confusing - I am confused that it has been working so
long (even last week!) and now doesn't.
And all posts on newsgroups etc seem to have no resolution....
Thanks,
Mich