Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Send Email    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Sending Email Error
Sean Smith 
     
2 years ago
Hello,

I just used Richards Tech Help Video on sending outlook emails - extended cut and for the most part, it works perfectly. Where I get into trouble is if a record in the assigned recordset table does not have an email address, i get a Run-time error '94 Invalid use of Null message. Any help on error handling this issue would be greatly appreciated.
Alex Hedley  @Reply  
            
2 years ago
If IsNull(Email)'
Sean Smith OP  @Reply  
     
2 years ago

Sean Smith OP  @Reply  
     
2 years ago
I had kind of thought about using something like that, but couldn't figure out how to do that. In the meantime, i setup a query to remove records without emails and set the recordset to the query which works. I'd love to know how to incorporate a IsNull condition for the table so i can remove the query.
Richard Rost  @Reply  
          
2 years ago
What you did is perfect. In fact, I would have done it that way in the first place. Your loop will actually run faster too. If you don't want to use a query, just put a WHERE condition in your SQL statement...

SELECT * FROM CustomerT WHERE NOT IsNull(EmailAddress)

Time for some SQL lessons. :)
Sean Smith OP  @Reply  
     
2 years ago
Thank you for the encouragement, solution and agree with your observation. I just tried it both ways and, as you said, the query does run faster so I'll leave well enough alone. Thanks again.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Send Email.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/10/2026 5:03:20 AM. PLT: 0s