VB 2012: "Overload resolution failed because no accessible 'OutputTo' is most specific for these arguments

Hello,

I have some code that I am moving to Visual Basic 2012.  The code works, except for the following error:

 "Overload resolution failed because no accessible 'OutputTo' is most specific for these arguments

The line that generates the error is as follows:

appAccess.DoCmd.OutputTo(Access.AcOutputObjectType.acOutputReport, "XYZ", "Snapshot Format", gstrSnapshotDir & "\" & gstrDateStamp & " XYZ.snp")
 
Any ideas?

Thanks In Advance,

- Michael
mjs082969Asked:
Who is Participating?
 
käµfm³d 👽Commented:
You are most likely passing an incorrect number of parameters to the method. Make sure you haven't mistakenly left out a parameter or added in an extra parameter.
0
 
mjs082969Author Commented:
That was it.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.