Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2007, 11:32 AM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run-Time Error 2046

I am running an MS Access 97 application were from 1 form I have a button to invoke Outlook Express.
On my test machine I run MS Access 97 under Windows XP home
I have 2 hard drives C: and G: to simulate the production system
MS Access is on the C: drive and the Access Application is also on the C: drive. The data is on the G: drive

On the Production system the data is on the Network server running under Windows 2000 and the application along with MS Access 97 is on each of the 2 stations running under Windows XP

The form has an EMail button supported by the following VB code

Private Sub Command183_Click()
Dim dbsSchoolSystem As Database
Dim rstStudent As Recordset
Dim SendEMail As String
SendEMail = Me!EMAILADD
DoCmd.SendObject acSendNoObject, , , SendEMail, , , "The Real Estate Training Institute", "We just received the course material today!char(13)Have a good day"
'rstStudent.Close
End Sub

On the test machine when I click on the EMail button it envokes Outlook Express and I can send an EMail

On the production machine when I click on the EMail button I receive the following Error Message

Run-Time Error 2046
The Command or Action "Send Object: isn't available now

I am at a loss why it works on the test machine and not on the production machine. Any ideas are appreciated
 
Old August 30th, 2007, 03:08 PM
Registered User
 
Join Date: Oct 2006
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi gordheck

It gives the impression that there in no reference to Outlook Express in the production version of the database. Check to see if this has a reference and if not add it, if so, let me know

Best

Martin
 
Old September 5th, 2007, 09:28 AM
Registered User
 
Join Date: Sep 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there.

Take a look at method 2 in:-

http://support.microsoft.com/kb/834008

I have an access2003 database running on Win XP. It uses SendObject to send reports as email messages using Outlook Express. Recently when I installed an update for Office 2003, my default email program somehow got changed to Outlook. I changed it back to Outlook Express, but when I tried emailing from my access program I got that dreaded "...isn't available now message". I poked around on the internet looking for a solution and eventually found the above solution, and it cured my problem.

I guess that the Office update, or the removal of Outlook must have removed those registry entries.

John
 
Old September 5th, 2007, 06:15 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Martin.
Thank you for your response to my problem
If I understand you correctly when you said to check the reference
I went into the MS Access Application and opened the Visual Basic for the SEND EMAIL button
I checked the REFERENCES on both computers and each had the first only the first four checked
Visual Basic for Applications
Microsoft Access 8.0 Object Library
Microsoft DAO 3.51 Object Library
Microsoft Word 8.0 Object Library

Any other ideas



Quote:
quote:Originally posted by martinrhague
 Hi gordheck

It gives the impression that there in no reference to Outlook Express in the production version of the database. Check to see if this has a reference and if not add it, if so, let me know

Best

Martin





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
run-time error(s) Chacko C++ Programming 0 March 4th, 2007 02:28 PM
run time error ashishroyk Java GUI 0 October 8th, 2004 01:42 AM
Run Time Error JBond Access VBA 0 May 27th, 2004 09:50 AM
RUN-TIME ERROR compcad Beginning VB 6 2 May 21st, 2004 02:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.