473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

.cbo and access 2007

n8kindt
221 100+
i've got my hands full with this next project, and i could use a couple leads to give me a jump start.

my final objective is to take each customer in our database and generate a report catered to them (using a where statement to filter for a certain characteristic), pile all the filtered customers into the To: field (i can't find anything on how to include multiple recipients into the To: field), export the report into PDF as an attachment (i have access 2007 and have installed the optional PDF plug-in that allows access to export reports as such), and email them to the corresponding customer email using the CBO library (bypassing outlook).

i have most of the pieces of the puzzle except, as i mentioned earlier, inserting multiple recipients into the "To:" field of the email, and inserting text into the body of the email.

i think i'm set on the rest of it, but any tips concerning this project would be much appreciated.

thanks, guys

--nate

PS - major problem #1 (already haha) i thought i saw something earlier about setting up my email to be sent thru an smtp server. i thought i could do this using gmail but i'm starting to think i'm horribly wrong. am i going to need my own server to do this?
May 1 '08 #1
3 2784
n8kindt
221 100+
PS - major problem #1 (already haha) i thought i saw something earlier about setting up my email to be sent thru an smtp server. i thought i could do this using gmail but i'm starting to think i'm horribly wrong. am i going to need my own server to do this?
ok, i was making this harder than it was. using the code from http://support.microsoft.com/kb/161833 got me on the right track. now, how do i populate the recipient list from a table provided that a certain condition is true about the recordset? i think i will use this page as a guide to creating my code: http://support.microsoft.com/?id=318881
May 1 '08 #2
n8kindt
221 100+
how do i populate the recipient list from a table provided that a certain condition is true about the recordset?
--------------------------------------------------------
bump?
May 7 '08 #3
LBryant
18
Stuff an array with your recipients, then iterate through the array to add your recipients to a message.

Expand|Select|Wrap|Line Numbers
  1.  
  2. For i = 0 To UBound(gRecipientList) 'add recipients from array
  3.      If gRecipientList(i) = "" Then Exit For
  4.      Set objOutlookRecip = .Recipients.Add(gRecipientList(i)) 'add to requestor list
  5.      objOutlookRecip.Type = olTo
  6. Next i
  7.  
  8. For i = 0 To UBound(gAttachmentList)    'add attachments from array
  9.      If gAttachmentList(i) <> "" Then .Attachments.Add gAttachmentList(i)
  10. Next i
  11.  
Would that work?
May 7 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
1
prn
by: prn | last post by:
Hi folks, I'm relatively new to Access, but I seem to have drawn the short straw, so I have the assignment for my workplace of looking for problems/inconsistencies in migrating applications to...
5
by: ARC | last post by:
Hello, A user posted a reply to a post of mine regarding the fact that Access 2007 would be free, or maybe I misunderstood? All I could find on Microsoft's site was information regarding the...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
10
by: Arno R | last post by:
Hi all, So I bought a new laptop 10 days ago to test my apps with Vista. (home premium) Apparently Office 2007 is pre-installed. (a time limited but complete test version, no SP1) So I take the...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
1
by: ARC | last post by:
I think I made a major blunder, and now Access 2007 no longer opens. I made the mistake yesterday of using the "test" option in wise installer for my Access 2007 runtime app. It actually installed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.