Solved

Runtime Error 424 Object Required

Posted on 2004-09-14
10
22,993 Views
Last Modified: 2011-08-18
I have a database that sends an automatic email.  Everything worked fine but I had to create a new database and reload the tables.  I lost one reference that I had to select again in VB in doing this.  It fixed one error.  I am now receiving an error that says 'Runtime 424 Object Required' when attempting to send the email (it worked fine before).  It stops on code that only calls the module which contains the connection to Outlook to send the email.  Is this a missing reference as well?  Do you know which one?  The code it stops on is:
                EmailModule.SendEmail ("Letter")
0
Comment
Question by:TrinaD71
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
10 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 250 total points
ID: 12054047
you probably need to add a reference to the outlook object model also
0
 

Author Comment

by:TrinaD71
ID: 12054109
I've added one to the Microsoft Outlook Object Library but it didn't help.  Are you talking about the Outlook sync type library?
0
 

Author Comment

by:TrinaD71
ID: 12054342
I figured it out.  One letter in the name was the wrong case.  Duh Thanks!
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 12054439
>>Runtime Error 424 Object Required
at least 1 object variable has not got been assigned.

How is the variable EmailModule be declared, or is this the name of the VM Module?
Inside the Procedure SendMail, is there any error handling? if not, add the basics so the debug pointer will stop at the line where the error occurs inside the procedure... Also check how VB "breaks" when a error occurs, you should set this while debugging to "break at any error". When the code is somewhat stable, you can change this to "break on unhandled errors"

Cheers
0
 
LVL 44

Expert Comment

by:bruintje
ID: 12054445
well thank you! if it was in the name then outlook probably couldn't resolve the name
0
 

Author Comment

by:TrinaD71
ID: 12064058
I'm sorry AngelIII, I didn't see your comment when I accepted Bruintje's answer.  I've written an email to ask how to award points and change a B to an A but I haven't heard back from them yet.  I'm going to search the community topics again today to see if I can figure it out.  I was quite sick yesterday so I'm hoping that the answer was right in front of my face and I can figure it out today so I can award my thanks.  Until then, thank you very much for your help.  I do truly appreciate it.
0
 
LVL 44

Expert Comment

by:bruintje
ID: 12064079
community support should be able to undo the accept so you can accept the answer from angelIII
0
 
LVL 44

Expert Comment

by:bruintje
ID: 12064092
you can post a 0 point question with your request here
http://www.experts-exchange.com/Community_Support/
0
 

Author Comment

by:TrinaD71
ID: 12069946
Thanks.  I don't want to undo the accept from you though.  I thought that I could award points.  I'll go to the Community Support and ask to find out but you helped me as well so you deserve credit as well as my thanks.
0

Featured Post

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question