snorkyller
03-01-2011, 09:30 AM
I sometimes get the following error:
Error 2455 - invalid reference to the property Form/Report
On the this line:
[Forms]![FormName]![SubFormName].Form.RecordSource = sql_query
It never occurs when the form isn't opened in design mode when I run it. When it is, it usually works fine. The error occurs only sometimes (and it's impossible to know when). When it does, if I stop the execution, then run the form again, the error will be triggered every time! But if I close the design mode, then run the form again, everything's fine (???)
If you have any idea, please let me know...
Thank you
Error 2455 - invalid reference to the property Form/Report
On the this line:
[Forms]![FormName]![SubFormName].Form.RecordSource = sql_query
It never occurs when the form isn't opened in design mode when I run it. When it is, it usually works fine. The error occurs only sometimes (and it's impossible to know when). When it does, if I stop the execution, then run the form again, the error will be triggered every time! But if I close the design mode, then run the form again, everything's fine (???)
If you have any idea, please let me know...
Thank you