docmd.openreport vba code example Example: vba open report DoCmd.OpenReport "rptYourName", acViewReport