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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 2585

Status
Not open for further replies.

Smoores

Programmer
Jun 5, 2002
9
CA
I was wondering if anyone could tell me what Error 2585 meant. I want to add code to send email to the remote user from the click (Yes) event of the form close.

Here is the code:
DoCmd.Restore

Select Case intReturned
Case vbYes:
' Now mark those items selected as "Shipped"
Call SetBusy(True)
Call RunQuery_TSB("", gCqryAppendBackOrderedItemstoOrder)
Call RunQuery_TSB("", gCqryMarkAsShipped)
Call RunQueryParameters_TSB("", gCqryqryAppendBolRecord, strBOLParmNames(), vBOLParmValues())
Call FormClose_TSB(gCfrmBOL)
Call SetBusy(False)
DoCmd.SendObject acReport, stDocName, , "dawson_mc@msn.com", , , "Bill Of Lading"
End Select
Similar code has worked elsewhere with other forms but I get an Error 2585 with this. The only code before this has the variables Dimed & defined.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top