G
Guest
Hello there
I have a report that has multiple record sources used on it, depending from where the report is launched. For example, if the report is opened from the "Area" screen then the area's query is used. If the report is opened from the District screen then the district query is used.
Problem: I want to use a specific recordsource for a report based on what screen is open. How can I do this
I have tried
if
formname.visible then recordsource ="a
else if formname.visible then recordsource = "b
end i
when i tried this i got an error saying that the app couldn't find the form
Any suggestions? Is there an open arguement. For example, if formname is open then....
many thanks
Carlee
I have a report that has multiple record sources used on it, depending from where the report is launched. For example, if the report is opened from the "Area" screen then the area's query is used. If the report is opened from the District screen then the district query is used.
Problem: I want to use a specific recordsource for a report based on what screen is open. How can I do this
I have tried
if
formname.visible then recordsource ="a
else if formname.visible then recordsource = "b
end i
when i tried this i got an error saying that the app couldn't find the form
Any suggestions? Is there an open arguement. For example, if formname is open then....
many thanks
Carlee