Hello,
This should be an easy question but I cannot figure it out.
I have a Report named "missingReport". The query I want to use for the RecordSource is quite complicated and so I need to set it dynamically. When I click a button in my form, I want to set the RecordSource to mentioned query. Here's the problem (taken from the button's code):
Dim misRep As Report
Set misRep = Reports![missingReport]
.
.
.
The 'Set' statement above returns "error code 438: Object doesn't support this property or method".
I can do this no problem with a form (ie Forms![missingForm] but I cannot get around the Report problem.
Any ideas?
This should be an easy question but I cannot figure it out.
I have a Report named "missingReport". The query I want to use for the RecordSource is quite complicated and so I need to set it dynamically. When I click a button in my form, I want to set the RecordSource to mentioned query. Here's the problem (taken from the button's code):
Dim misRep As Report
Set misRep = Reports![missingReport]
.
.
.
The 'Set' statement above returns "error code 438: Object doesn't support this property or method".
I can do this no problem with a form (ie Forms![missingForm] but I cannot get around the Report problem.
Any ideas?