I want to open a report and use a different table that has the same fields necessary for the report. I tried this below but does not work.
myReportName = "VendorVolume"
sqlstr = "select * from [dbo_FactApHistory2015]"
DoCmd.OpenReport myReportName, acViewReport, , , , sqlstr