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 
Different email different addresses
Harry Mullin 
   
11 years ago
What about using GMail in a browser as a client rather than Outlook - is that possible & explained in the class?

My Loop deals with the issue of users creating update/bug requests ("Bells") and my grouping the  requests into an Update (UpdateT)by joining the  Objects affected (ObjectT of all tables, forms, queries  in the db) to the Bell and Update (LObjBellUpT).
The RSet grabs the records marked "User Testing" and sorts by User.  The loop walks through creating a string (requestor; issue; where the changes are made; and  what was done). Each ";" is on a new line with indents for readability.
Here's the code (hopefully it is  readable)
    'loop records and create emails
    Do Until rst1.EOF
'    check if person submitting Bell has changed
        If lngFromID = rst1!FromID Then
'            if not, drill down until a change is found and create another line to detail
            If lngBellID = rst1!BellID Then
                If lngLObjBellUpID = rst1!LObjBellUpID Then
                Else
                    strBody = strBody & "   Change made to: " & rst1!ObjName & vbCrLf & "   >What Changed: " & rst1!ActionDesc & vbCrLf
                    lngLObjBellUpID = rst1!LObjBellUpID
                End If
            Else
                strBody = strBody & " Issue: " & rst1!NoteSum & vbCrLf & "   Change made to: " & rst1!ObjName & vbCrLf & "   >What Changed: " & rst1!ActionDesc & vbCrLf
                'lngFromID = rst1!FromID
                lngBellID = rst1!BellID
                lngLObjBellUpID = rst1!LObjBellUpID
            End If
        Else
'        if person has changed (will require a separate email), check if this is the first pass (ie nothing has yet been created) and
'        push out the assembled email. Then begin to build the next one.
            If lngFromID = 0 Then
            Else
                strTo = rst1!Email
                DoCmd.SendObject acSendNoObject, , acFormatHTML, strTo, , , strSubject, strBody
            End If
            strBody = "Bell Submitted By: " & rst1!BellFrAb & vbCrLf & " Issue: " & rst1!NoteSum & vbCrLf & "   Change made to: " & rst1!ObjName & vbCrLf & "   >What Changed: " & rst1!ActionDesc & vbCrLf
            strTo = rst1!Email
            lngFromID = rst1!FromID
            lngBellID = rst1!BellID
            lngLObjBellUpID = rst1!LObjBellUpID
        End If
        rst1.MoveNext
    Loop
        DoCmd.SendObject acSendNoObject, , acFormatHTML, strTo, , , strSubject, strBody




Reply from Alex Hedley:

It shows SMTP so you can connect to Gmail or Yahoo etc.

Your DoCmd is outside of the Loop

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/17/2026 12:41:10 AM. PLT: 0s