Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Message

Status
Not open for further replies.

3728

Programmer
Feb 25, 2002
17
SG
Hi

Does anybody know what does this error message means?

Run-time error '2406'
The command or action 'OutputTo' isn't available now.

Thanks
 
We need more information.
What code are you running when you get this message?
Past your code here & let us know which line of code is causing the problem.

Ben ----------------------------------
Ben O'Hara
bo104@westyorkshire.police.uk
----------------------------------
 
The code is
################
stDocName = "fisfinrpt"

DoCmd.OutputTo acOutputReport, stDocName, outputformat,filename, False

stDocName = "SubRpt"
==> DoCmd.OutputTo acOutputReport, stDocName, outputformat, filename1
################


The line with the arrow is causing the problem.

thanks for ur help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top