Question : The command or action 'OutputTo' isn't available now

I am using the following code and it is working perfectly on dozens of machines. However one machine is coming up with the following error message:
"The command or action 'OutputTo' isn't available now"

Can anyone help me figure out what the message means?

    strQuery = "qExportLocalAddItems" & slastident & Format(Now, "yymmddhhmmss")
   
    DoCmd.CopyObject , strQuery, acQuery, "qryExportLocalAddItems"
    DoEvents
   
    On Error Resume Next
    DoCmd.SendObject acSendQuery, strQuery, acFormatXLS, , , , _
    "Extra Discussion Items", sMessage & vbCrLf, True
    If Err Then
        MsgBox "Failed to send the required file - please try again or report if fault persists", vbOKOnly, "Send Failure"
    End If

Answer : The command or action 'OutputTo' isn't available now

Hi,
I've also had the same problem in the past.
Check that the offending PC has got  the same configuration as the others ..ie the same Service Packs etc.

Gary
Random Solutions  
 
programming4us programming4us