473,544 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embed Recordset in Email

1 New Member
I am working on a module that will create several recordsets using SQL statements that contain "tickler" information to be sent to employees through the email to complete different actions. The recordsets are no problem, however, the only way I have been able to send emails is to send one action at a time per email using the SendObject command. Ex. "Please update payment amount in file 123 to $50.00 by 1/1/2007." I would rather send an entire recordset to an individual in one email.

Ex. "Please make the indicated updates to the following files.

File 123 Update payment amount to $50.00 by 1/1/2007
File 223 Request production reports from X Co. by 2/1/2007.
File 323 Calculate new periodic payment "

Is there a way to loop through a recordset and have it embed string values for each record in a Groupwise email?
Aug 28 '07 #1
1 2153
MMcCarthy
14,534 Recognized Expert Moderator MVP
Assuming the message size doesn't get too big you can loop through the recordset and pass all the values to a string variable which would include line down characters.

e.g.
Expand|Select|Wrap|Line Numbers
  1. Dim strMsg As String
  2.  
  3.     ' open recordset method here using rst variable name for example
  4.  
  5.     rst.MoveFirst
  6.     Do until rst.EOF
  7.         strMsg = strMsg & rst!YourFieldName & chr(13)
  8.     Loop
  9.  
Then use strMsg as the Message parameter in SendObject.
Sep 2 '07 #2

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

Similar topics

11
4466
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after that I've got confused. For example, what should be put into classid and codebase attributes of the OBJECT now embedding the EMBED tag?
10
6290
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed tag whose source is big SVG file, whose dimensions are unknown. If it is bigger than the screen, the rest of the SVG is clipped and not shown. I...
2
3801
by: Eric Barr | last post by:
I've found myself using XSD files for my datasets. I'm loading them up from disk right now. I was hoping there was a way to embed the file in the assembly, so I could have access to it without the disk read. I know I could build a kludge of a string builder function ...I was looking for a way to embed the entire file in my assembly. Is...
0
1744
by: beau | last post by:
Please help me ! Anybody can help me with a code to embed an ms word file into an access table ? I have ms word templates with bookmarks in my hard disk. So far I can open the template through a button in my access form, insert the bookmarks with data from the form and save the word document in the hard disk. I need to save/copy this...
0
1994
by: beau | last post by:
Re. Embed or save ms word into OLE field Please help me ! Anybody can help me with a code to embed an ms word file into an access table ? I have ms word templates with bookmarks in my hard disk. So far I can open the template through a button in my access form, insert the bookmarks with data from the form and save the word document in...
24
6231
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
2
1632
by: Sandman | last post by:
Is there a common library for creating universal <object></objectand <embed></embedtags for different kinds of files for PHP? What I'd like is feed a function with info about the file, and it would output correct HTML data for embedding that object into the web page. like this: <?
3
4776
by: abrtlt | last post by:
I would like to have a web page in which, when the user clicks on any of several specific elements, a specific audio file is played, without reloading the page. The specific audio file name is obtained from a PHP script (accessing a MySQL database) that could be called using XMLHttpRequest and JavaScript would write in a "div" tag an "embed...
4
1891
by: Wu | last post by:
Hello, I have to embed a flash in a html email by csharp. Don't you know how to do it? I found some source in code project, but the activeX does not able to run at default security level. Please advice. Wu
0
7429
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7368
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7777
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5916
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3420
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3414
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1844
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
990
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.