D
David Cleave
I have a subform that gets requeried by the Current event of another subform
(I’m trying to link the data between them). The code used is as follows:
[Forms]![FormName]![SubformName].Form.Requery
This works fine except in one instance. When the parent form opens, I get
this error:
Run-time error ‘2455’:
You entered an expression which has an invalid reference to the property
Form/Report.
I assume this is because the Current event is being called before the second
subform is loaded (and can therefore be requeried). Can anyone confirm if
this assumption is correct?
If it is, how can I test whether the subform is ready to be requeried so
that I can avoid the error? If the assumption is wrong, can anyone provide me
with another solution?
Thanks
David
(I’m trying to link the data between them). The code used is as follows:
[Forms]![FormName]![SubformName].Form.Requery
This works fine except in one instance. When the parent form opens, I get
this error:
Run-time error ‘2455’:
You entered an expression which has an invalid reference to the property
Form/Report.
I assume this is because the Current event is being called before the second
subform is loaded (and can therefore be requeried). Can anyone confirm if
this assumption is correct?
If it is, how can I test whether the subform is ready to be requeried so
that I can avoid the error? If the assumption is wrong, can anyone provide me
with another solution?
Thanks
David