473,804 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.)
tblContactIssue s (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
tblContactIssue s.

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 tblContactIssue s.

Please help,

Jonathan McLean


Nov 12 '05 #1
4 6359
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********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
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**********@e arthlink.net> wrote in message news:<5_******* **********@news read3.news.pas. earthlink.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********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
"Jon McLean" <jm**********@e arthlink.net> wrote in message
news:<5_******* **********@news read3.news.pas. earthlink.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
1720
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 drop down box with all the types listed and simple the ability to click on multiple check boxes to show what class(es) of license the person has. I have read through most of the articles on multiple list boxes but this is not my need. I dont need...
2
6368
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 want to do this as the selections are being made not after-the-fact after all selections are made. Thanks! Sally
2
3362
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 variable data. Any clues as to how I can write several items to an SQL statement from a multiselect listbox to update a report? Thanks in anticipation Cassie
1
8602
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 print a report based on these multiple selections from my list box. I am not very good at coding, and want to advoid it if possible. Many thanx. Regards, Jillian
6
1711
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 page load for updation, i have to reload the selected items again with the same string "1/3/6/8" to be selected in my multiselect list box. Its asking me to convert object to int... for list selection. but how to achieve this..?...
43
3477
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, very little VBA if possible, and check boxes would be ideal or multiple selecting! eg crtl+click Fictional Scenario: lets say I am a computer guy, I go to clients house and install software. I went to johns house and installed the fallowing
14
3648
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
1790
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 code so much that I am trying to expand it to run off more then one list box. However I can’t get it to work. Original code is below. Private Sub PhotoSearch1_Click() Dim strOr As String Dim strDoc As String Dim varSelect As Variant Dim ctl...
2
3043
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 that is stored is made up of qualifications and areas of business that candidate is involved etc. My problem is with the query by form where i have a range of combo boxes and list boxes. The combo boxes are working fine, no problem however the...
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10569
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
10325
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
10315
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,...
0
9140
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
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
6847
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
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
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

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.