L
Leif
I have an OutputTo command that fails when executed from an autoexec
function. The following is the command:
attach(0) = "c:\temp\Delinquent.snp"
DoCmd.OutputTo acOutputReport, "rptEmpDelinquent", acFormatSNP, attach(0)
The command works fine if executed once the database is "fully up".
However, if I place the command in an Autoexec routine I get the message:
Run-time error '2046':
The command or action 'OutputTo' isn't available now.
Anyone know why? Is there a work around? I would like to be able to fire
this off automatically after the user logs in.
Regards,
Leif
function. The following is the command:
attach(0) = "c:\temp\Delinquent.snp"
DoCmd.OutputTo acOutputReport, "rptEmpDelinquent", acFormatSNP, attach(0)
The command works fine if executed once the database is "fully up".
However, if I place the command in an Autoexec routine I get the message:
Run-time error '2046':
The command or action 'OutputTo' isn't available now.
Anyone know why? Is there a work around? I would like to be able to fire
this off automatically after the user logs in.
Regards,
Leif