I can't directly access the recordsource from there. Is there another way. It would be much easier for me to access the recordsource than modifying the criteria, which is all that I see is possible with DoCmd.OpenReport
In order to get to the Recordsource property of the report thru code, the report will have to be open. BUT, if you open the report first, then you can't change the Recordsource. So, the only way I see to do it is to use Docmd.OpenReport. Perhaps someone else knows of another way. Sorry...I tried.
Thanks! I've googled, and I think that is the only way also. I think I'm going to try using the OpenArgs to pass the recordsource string to the report_open(). Maybe i'll change it to your way if this doesn't work.
I know you can set captions and other properties programmatically by turning off warnings, opening in design mode, changing and saving. Have you tried this for recordsource?
HTH,
Alex
It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.