473,386 Members | 1,958 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,386 software developers and data experts.

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=ListBox225.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 2475
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(intIndex) 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**********@gmail.comwrote in message
news:11**********************@n13g2000cwa.googlegr oups.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=ListBox225.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(intIndex) 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**********@gmail.comwrote in message
news:11**********************@n13g2000cwa.googlegr oups.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=ListBox225.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**********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.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(intIndex) 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**********@gmail.comwrote in message
news:11**********************@n13g2000cwa.googlegr oups.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=ListBox225.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
by: Sateesh | last post by:
Hi, Is it possible to access Lotus notes using Python? Can anyone provide me some pointers? Thanks Sateesh
9
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...
5
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...
0
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...
2
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...
0
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...
2
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...
1
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...

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.