Access 2002 versus 2000

G

Guest

Can anyone tell me why the following works in Access 2000 but not 2002?

Private Sub cmdImport_Click()
On Error GoTo Err_cmdImport_Click

Dim stDocName As String

stDocName = "QueryToUpdateNewECRs"
DoCmd.OpenQuery stDocName, acNormal, acEdit

stDocName2 = "QueryToEmailNewECRs"
DoCmd.OpenQuery stDocName2, acViewNormal, acEdit


DoCmd.SendObject acSendQuery, "QueryToEmailNewECRs", acFormatXLS,
"(e-mail address removed)", , , "ECRs Updates", "These ECRs are active and have not
been assigned as of today."


Exit_cmdImport_Click:
Exit Sub

Err_cmdImport_Click:
MsgBox Err.Description
Resume Exit_cmdImport_Click

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Form Code HELP ?? 4
MAYDAY! MADAY! - Run time error 7
run-time error 2467 2
1st VBA sequence 6
Error 20 Resume without Error 2
Resume Next versus GoTo 5
Error 2391 5
Option Explicit - Bug? Feature? User Failure? 8

Top