Multiple selection from within a listbox

A

ADixon

Hi all

I have a simple form based Access front end which is used to select some
existing info stored in tables, and also to gather user input. The info is
then sent to recipients via Outlook. I need to find a way of taking multiple
selections (also possibly single selections) from a listbox on a form and
placing it into the emails. As there is no way of knowing how many items
there are, how can i first take the info from the listbox, and second use
this info in Outlook?

Many thanks
 
M

mscertified

(1) Define your listbox as multi-select (look in Access Help)
(2) Read thru the selected item collection to get the selections (look in
Access Help)
(3) Use the Outlook object to compose and send the emails.
(4) Expect to get a security prompt whenever you try to send an email via
Outlook and Access.

-Dorian
 
K

Klatuu

mscertified gave you the answer, but to find out how to loop through a list
box to determine which items are selected, see VBA Help for ItemsSelected
property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top