Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Error With Attachments
Thomas Corbett 
     
6 years ago
First and foremost I found the email seminar to be spectacular!!! Within an access form I store a file (report) as an attachment. Now, having created a button and assigning vb for mailing with outlook I was able to set up the To:, CC:, BCC:, Subject and Message taking fields from my form (All of it works just fine.) However, when I try to attach a file from my form using osmg.attachements = me.(Field that holds the file) I receive an error which I cannot get around. Can you help? :)

Thanks

Tom -
Richard Rost  @Reply  
          
6 years ago
Thanks for the compliment. That was one of my favorite seminars to record. What's the exact error message? What's the exact code you're using?
Thomas Corbett OP  @Reply  
     
6 years ago
Run-Time Error '440' Property is read only
Thomas Corbett OP  @Reply  
     
6 years ago
its a little tricky because it is an object within the form as an attachment I am calling upon

Run-Time error '440'
Property is read only
Richard Rost  @Reply  
          
6 years ago
You're doing it wrong. You have to say:

Omsg.Attachments.Add FILENAME

See Lesson 7, time index about 4:00.

Youz gotsta follow directions. :)
Thomas Corbett OP  @Reply  
     
6 years ago
I got that but I am trying to work right off my form rather than going to a separate form so for each of the To, CC, BCC, subject I used the data from the displayed form as me.to, etc.
Richard Rost  @Reply  
          
6 years ago
I understand that, but you HAVE to add attachments the way I showed you. You cannot set it like you're trying to do.
Thomas Corbett OP  @Reply  
     
6 years ago
Ok, Thanks :)

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

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/9/2026 10:14:27 PM. PLT: 1s