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

Using MultiSelect List Box on a Subform

I fear that my question may be elementary, but what I am trying just is not
working.

I have two tables:

tblContacts (Essentially a mailing list. Each contact has an Autonumber
ID.)
tblContactIssues (Just an issue ID as long integer and ContactID as long
integer to correspond with tblContacts. I want to capture multiple issues
of interest for each contact)
tblIssues (Autonumber IssueID and Description)

On the form where we enter the contact info (frmContacts) I want to be able
to select multiple issues that will create multiple records in
tblContactIssues.

I am trying to get a MultiSelect List Box on a subform to work, but it seems
to only allow one record per ContactID in tblContactIssues.

Please help,

Jonathan McLean


Nov 12 '05 #1
4 6336
Any reason you can't use a combobox on your subform and choose the
values from the dropdown? If you use a MSLB, you'll need to cycle
through the ItemsSelected collection and write the values to the table
in code... Way too much work, IMO... easier and more intuitive to just
use a combobox in your subform... If you use a listbox and make a
mistake, how would you delete/correct it? PITA!
Nov 12 '05 #2
I need to be able to make multiple selections of issues per each contact.
Can I do that with a combo box?

Jon
"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
Any reason you can't use a combobox on your subform and choose the
values from the dropdown? If you use a MSLB, you'll need to cycle
through the ItemsSelected collection and write the values to the table
in code... Way too much work, IMO... easier and more intuitive to just
use a combobox in your subform... If you use a listbox and make a
mistake, how would you delete/correct it? PITA!
Nov 12 '05 #3
"Jon McLean" <jm**********@earthlink.net> wrote in message news:<5_*****************@newsread3.news.pas.earth link.net>...
I need to be able to make multiple selections of issues per each contact.
Can I do that with a combo box?

Jon

Okay, makes sense now. There's a one-to-many relationship between
contacts and issues (or many to many). So you would just have the
contacts as the source of the main form and issues the source of the
subform... then you could have your comboboxes there and choose until
you're blue in the face.
Nov 12 '05 #4
Pieter,

Thanks for the advice. However, this is still only allowing me to save one
issue per contact. I need the table tblContactIssue to store multiple
instances of ContactID with different IssueNos.

I saw a db that did this. If the user clicked the box (I think a list box
but maybe a combo box) and chose an option the option would stay visible,
and for each issue chosen a new record would be created with ContactID and
IssueNo.

I made a combo box on a datasheet subform, and I got a similar effect, but
it would not record the IssueNo at all. I changed it to a form view form
and I can only select one issue. Going back into the same contact record
and selecting a different issue replaces the original ContactID record with
a different issue.

I have seen it done, I am just missing something.

Thanks for the help,

Jon McLean
"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"Jon McLean" <jm**********@earthlink.net> wrote in message
news:<5_*****************@newsread3.news.pas.earth link.net>...
I need to be able to make multiple selections of issues per each contact.
Can I do that with a combo box?

Jon

Okay, makes sense now. There's a one-to-many relationship between
contacts and issues (or many to many). So you would just have the
contacts as the source of the main form and issues the source of the
subform... then you could have your comboboxes there and choose until
you're blue in the face.
Nov 12 '05 #5

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

Similar topics

2
by: steve | last post by:
Hello, I am using ACCESS 2000 and am currently trying to make a database for a police department and they have several types of license classes. i.e A,B,C,D,E etc. What they have asked for is a...
2
by: Sally | last post by:
I have a simple multiselect listbox with a rowsorce of MemberID, MemberName, SendLetter. SendLetter is a Yes/No field. What is the code to set SendLetter to Yes when the user selects MemberName? I...
2
by: Cassie Pennington | last post by:
I am trying to write various items from a multiselect list box to an SQL statement to update a report, without success. SQL only appears to accept hard-coded data or control values from a form, not...
1
by: Jillian Cee | last post by:
I have a multiselect list box (simple). I need to find out how to get Access to recognise my multiple selections firstly (I believe) then I want these selections to go into a query so that I can...
6
by: ¿ Mahesh Kumar | last post by:
Hi groups, Control name : ListboxID (lstCertification), selection mode=mutliselect. On Pageload i'm assinging string lstSplit="1/3/6/8" of the previously selected listindex id's. Now on the...
43
gcoaster
by: gcoaster | last post by:
Hello!! Love this forum. by the way, FishVal and NeoPa are geniuses. I have a question regarding = comboxes to multiple listbox selection populates subform. My goal is NOT to use macros,...
14
gcoaster
by: gcoaster | last post by:
Hello, * Access 2007 * Little Experience with VBA I will try and make this as clear as I can. ISSUE I have a database that has information for Clients and their Computers.
1
by: Redbeard | last post by:
I am a newbie running Access 2003. A couple of weeks back a member named ADezil help me write a code that let a , MultiSelect Listboxs that run a Query on a Form (many thanks). I have used this...
2
by: hollinshead | last post by:
hi there, i have been having this issue for quite some time now and i cant seem to get my head around it. I am trying to create a database for candidates CV's and covering letters. basically the data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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
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...

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.