matthewnsarah07
Registered User.
- Local time
- Today, 13:57
- Joined
- Feb 19, 2008
- Messages
- 192
Currently using a database created on a personal drive M: at work. I use to fill out a form which in turn generates a report sent out via SendObject.
Code as follows:
I've moved this dbase to a shared drive G: - others users can log on to the drive and use the dbase until in comes to sending the report.
It simply throws up The Microsoft Jet Databse could not find object"
How can I solve this problem without having to rebuild the database from scratch???
Any help greatly appreciated
Code as follows:
Code:
Private Sub Command46_Click()
If Me.Dirty Then Me.Dirty = False
Me.Status = "New - Awaiting Area Ref"
DoCmd.SendObject acReport, "rptWatchman", acFormatSNP, Me.StaffEmail, "[EMAIL="Donald.Coates@highways.gsi.gov.uk"]Donald.Coates@highways.gsi.gov.uk[/EMAIL]", Me.StaffEmail, "North West Watchman Form Attached", "A new Watchman Form is attached in Access Snapshot format.", Me.Attachments, No
MsgBox "Your Watchman Form was Submitted Successfully, you will receive a copy shortly by email", vbOKOnly, "Information"
' MsgBox MailOutLook.Body
End Sub
I've moved this dbase to a shared drive G: - others users can log on to the drive and use the dbase until in comes to sending the report.
It simply throws up The Microsoft Jet Databse could not find object"
How can I solve this problem without having to rebuild the database from scratch???
Any help greatly appreciated