473,804 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Emailing multiple list box items from ms access using Lotus Notes

I am using Ms Access to send email automatically through Lotus Notes.
What I require now is that I have a List Box in my form which when
loads,fills in the data's from the backend table.
In the body of the mail,I use the object that contains the item
selected from the list.
i.e. MailDoc.Body=Li stBox225.Column (0) & List225.Column( 1)
When an email is generated,it output is as below.

126 Rupam.

Now I want a syntax code that would include multiple rows from the list
box and not just 1 row.

Please can you help me with this I am in desparate need of it.

Your help much appreciated.

Regards
Rupam.

Aug 9 '06 #1
4 2491
Kinda pushy if you're asking for help... search the NG for listbox and
AddItem. Otherwise, please SEND MONEY.

there's an example at www.mvps.org/access

happy searching, happy finding, happy learning.

Aug 9 '06 #2
Something like

Dim intIndex As Integer

With Me.ListBox225
For intIndex = 0 To .ListCount - 1
If .Selected(intIn dex) Then
' do the stuff you're doing with 1 e-mail in here e.g.
MailDoc.Body = .Column(0, intIndex) & .Column(1, intIndex)

End If
Next
End With
--

Terry Kreft
"Rups" <ru**********@g mail.comwrote in message
news:11******** **************@ n13g2000cwa.goo glegroups.com.. .
I am using Ms Access to send email automatically through Lotus Notes.
What I require now is that I have a List Box in my form which when
loads,fills in the data's from the backend table.
In the body of the mail,I use the object that contains the item
selected from the list.
i.e. MailDoc.Body=Li stBox225.Column (0) & List225.Column( 1)
When an email is generated,it output is as below.

126 Rupam.

Now I want a syntax code that would include multiple rows from the list
box and not just 1 row.

Please can you help me with this I am in desparate need of it.

Your help much appreciated.

Regards
Rupam.

Aug 9 '06 #3
Hi Terry,

I have tried using the code below but it gives an error as below.

91:Object variable or With block variable not set.

Please could you advise.

Regards
Rupam

Terry Kreft wrote:
Something like

Dim intIndex As Integer

With Me.ListBox225
For intIndex = 0 To .ListCount - 1
If .Selected(intIn dex) Then
' do the stuff you're doing with 1 e-mail in here e.g.
MailDoc.Body = .Column(0, intIndex) & .Column(1, intIndex)

End If
Next
End With
--

Terry Kreft
"Rups" <ru**********@g mail.comwrote in message
news:11******** **************@ n13g2000cwa.goo glegroups.com.. .
I am using Ms Access to send email automatically through Lotus Notes.
What I require now is that I have a List Box in my form which when
loads,fills in the data's from the backend table.
In the body of the mail,I use the object that contains the item
selected from the list.
i.e. MailDoc.Body=Li stBox225.Column (0) & List225.Column( 1)
When an email is generated,it output is as below.

126 Rupam.

Now I want a syntax code that would include multiple rows from the list
box and not just 1 row.

Please can you help me with this I am in desparate need of it.

Your help much appreciated.

Regards
Rupam.
Aug 9 '06 #4
You still have to do all the other things your current code does.

I would guess the error is on the line
MailDoc.Body = .Column(0, intIndex) & .Column(1, intIndex)

and that you haven't done the bit where you set the MailDoc variable, i he
error isn't there come back to me.
--

Terry Kreft
"Rups" <ru**********@g mail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi Terry,

I have tried using the code below but it gives an error as below.

91:Object variable or With block variable not set.

Please could you advise.

Regards
Rupam

Terry Kreft wrote:
Something like

Dim intIndex As Integer

With Me.ListBox225
For intIndex = 0 To .ListCount - 1
If .Selected(intIn dex) Then
' do the stuff you're doing with 1 e-mail in here e.g.
MailDoc.Body = .Column(0, intIndex) & .Column(1, intIndex)

End If
Next
End With
--

Terry Kreft
"Rups" <ru**********@g mail.comwrote in message
news:11******** **************@ n13g2000cwa.goo glegroups.com.. .
I am using Ms Access to send email automatically through Lotus Notes.
What I require now is that I have a List Box in my form which when
loads,fills in the data's from the backend table.
In the body of the mail,I use the object that contains the item
selected from the list.
i.e. MailDoc.Body=Li stBox225.Column (0) & List225.Column( 1)
When an email is generated,it output is as below.
>
126 Rupam.
>
Now I want a syntax code that would include multiple rows from the
list
box and not just 1 row.
>
Please can you help me with this I am in desparate need of it.
>
Your help much appreciated.
>
Regards
Rupam.
>

Aug 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
15173
by: Sateesh | last post by:
Hi, Is it possible to access Lotus notes using Python? Can anyone provide me some pointers? Thanks Sateesh
9
2250
by: Brendan MAther | last post by:
I have a table called Contact_Info. I have a form that allows me to show all the contacts from a specified city and sector. Once these contacts appear on my new form I would like to be able to press a button and it would take their email addresses, from the 'email' field, and enter them into Outlook in the "TO:" box so that they can all be emailed the same document. Any help would be much appreciated, thank you, Brendan
5
7395
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a Run-time error. When I run it on an XP machine it crashes, but on an NT box it just generates an unknown error, handled by the error handler. I have debugged and stepped through the code and have narrowed the issue to the point at which the...
0
5617
by: PZ Fosbeck | last post by:
I'm not a Lotus Notes developer but thanks to this group's archives have successfully created a function for sending Lotus Notes emails from Access. The follow code works great except I want to remove my name from the 'Sent By' portion of the email. These messages are sent using my client session of Lotus Notes, using a database called 'Tech Team' The resulting email message headers contains (Bold, the From name) 'Tech Team'
2
1289
by: BerkshireGuy | last post by:
Is there a way to have reports sent to a pdf file and then emailed automatically using Lotus Notes 6? I have 3 reports and would like a button that the user clicks which then automatically makes the PDF files of the reports and then emails them directly. Thanks! -Brian
0
1501
by: Heinz K | last post by:
Hi all, is it possible to access a Lotus Notes database even if Lotus Notes is not installed on current computer? I have an IIS and want to create a Webservice which accesses data from a Lotus Notes Server. I found solutions if Lotus Notes is installed locally, but on my IIS Notes is not and will not be installed. Is it nevertheless possible to read data from the database? Thanks!
2
11849
by: charliej2001 | last post by:
Hi all I'm trying to set up an Access database that will be able to import contact information from the lotus notes 6.5 Address book. The idea is that the code runs from access to import all of the contacts, using COM. I've written the following vba code so far to import the contacts
1
1341
by: Torilyn73 | last post by:
Ok folks... I apologize now if I'm covering territory already discussed. I'm sick as a dog right now and have got to get some work done on this datbase. Let me explain what I'm trying to do. I work as email tech support fo a computer manufacturer. Anyway, up until recently all emails sent from customers for help came into our Lotus Notes. The powers that be have changed us to an online forum sort of thing. The problem we are having is...
4
9726
by: Bob Alston | last post by:
I am trying to access data in a Lotus Notes database, from Access. The Notes database is release R5. I installed NotesSQL 8.x and have it working. However it chokes on one of the tables and references problems with the dates. If I create a query, without these dozen or so dates, I can access all the data. However I am guessing that most of the dates are correct and only some are bad.
0
10583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
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
2
3822
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.