With my code below I am exporting a report to snp format onto my c: drive. ONLY problem is I keep getting the Enter Parameter Value box. How can I pass a variable (varName) to this parameter and then export the report to snp. Again the export works fine but I keep getting the Enter Parameter box. I want to bypass this box with a value contained within my variable.
Dim Axs As Access.Application
Set Axs = CreateObject("Access.Application")
varName = "smith"
Axs.Visible = False
Axs.RunCommand acCmdAppMaximize
Axs.OpenCurrentDatabase ("c:\Report.mdb")
Axs.DoCmd.OutputTo acOutputReport, "Report1", acFormatSNP, _
CurrentProject.Path & "\Test.snp"
Dim Axs As Access.Application
Set Axs = CreateObject("Access.Application")
varName = "smith"
Axs.Visible = False
Axs.RunCommand acCmdAppMaximize
Axs.OpenCurrentDatabase ("c:\Report.mdb")
Axs.DoCmd.OutputTo acOutputReport, "Report1", acFormatSNP, _
CurrentProject.Path & "\Test.snp"