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

Allowing multiple selections in a list box for mailing list

Hi there,

I am trying to create a tblMailingList, but am a little stuck on multiple selections. The people that have opted into this mailing list will be given a list of different interests they want to be kept informed about e.g. services, special offers, 3rd party services etc.

At any given time, If I create a newsletter for services, I want to run a query to extract everyone who has said they want to be kept up to date about services. I was thinking of creating an interests table and using a lookup field in the tblMailinglist so I can select which interests they have, but it wont allow me to select more than one e.g. services OR special offers.

How can I get around this? I don't want to have a separate field for each interest, I just want this one interests field in tblMailinglist to have all of the interests saved there so I can perform various queries.

Any ideas?
Dec 16 '06 #1
8 1676
PEB
1,418 Expert 1GB
Basiclly U need 3 tables:

1. Table Persons: with ID of the respectiv person, his mail and other details relativ to the person

2. Table Interests That contains all kind of interests and their respectives ID's

3. Interests by people: In this table can be described all interests for one person! And with other words all interests for all people!

So when u need all interested in services u should look in this 3-th table and get those people and get the mails in the table with persons!

Is this helpful?
Dec 16 '06 #2
NeoPa
32,556 Expert Mod 16PB
This will give all the data required but the interests will be in separate output records.
This may prove difficult to process in future (2 is easy Min() & Max() but >2 gets v complicated).
It may be worth considering three separate fields in the one record - Interest1; Interest2; Interest3.
A table of all the possible interests is a good idea in either scenario.
Dec 16 '06 #3
Thank you both for your replies.

PEB, I didn't really understand that. Would the 3rd table display each interest and wihtin that each member who has selected that interest? In which case, how do I link the two?

NeoPa - that was what I was thinking of doing, but the problem is that say I end up having 15 interests, if a member was only interested in 1, then it would mean 14 blank records wouldn't it? I was just trying to reduce data redundancy really, but looks like I may just have to have blank records?

Thanks to both of you for your help.
Dec 17 '06 #4
NeoPa
32,556 Expert Mod 16PB
Thank you both for your replies.

PEB, I didn't really understand that. Would the 3rd table display each interest and wihtin that each member who has selected that interest? In which case, how do I link the two?

NeoPa - that was what I was thinking of doing, but the problem is that say I end up having 15 interests, if a member was only interested in 1, then it would mean 14 blank records wouldn't it? I was just trying to reduce data redundancy really, but looks like I may just have to have blank records?

Thanks to both of you for your help.
No.
My idea was to populate a single record with multiple 'Interest' fields.
This would involve creating all these fields in your table to start with, and maybe some code in your entry form to move filled items left if not all are filled in. The best way for this is to disable all empty fields except the left-most one OnCurrent, but updating which fields are enabled in the AfterUpdate event.
Let me know if this is still not clear.
Dec 17 '06 #5
PEB
1,418 Expert 1GB
If I undertstand well there is proirity of interests or something like this?

U need specify which one is the first interest, which one is the second?

My mind is to create a table with interests like this:

Id, ID_person, ID_interest, Interest_priority
1, John, IT,1
2,John,Theatre,2
3,John,Cinema,3
4,Peter,Foot,1

When this table is populated with info u'll have the interests of al people without fields that are empty! And without seeking in 15 fields to see the wanted interest as it is the idea of NeoPA!

Such construction should be easier to retrieve the needed info and to mail everybody that has the respective interest!

The information about the mail of the respective person is in a separate table with the persons:
Person_ID, First Name, Last Name, Mail
John, John, Atanasov, john_atanasov@gmal.com

Hope that my idea is a bit clear! :)
Dec 17 '06 #6
Hiya, thanks for your replies, unfortunately it's still a bit unclear. There's no need for a priority - it's just that I know how frustrating it is to receive newsletters with things that dont interest me, so want to only send newsletters to those who have opted to hear about certain things e.g. new courses.

So the plan is to create my mailing liste members table, then create an interests table, then create a members interest table - correct me if I'm mistaken??

tblMailingListMembers - contains only contact details for member inc memberID
tblInterests - contains a list of all interests e.g. special offers, new courses etc
tblMembersInterests - contains the memberID (foreign key) and interest (foreign key) and each member can appear in this table more than once if they have an interest in more than one thing?

Am I right? I guess this would normalise it as at the mo I've mistakenly got it down as a one-to-many relationship.

If I'm not right, then I'm changing careers to making teapots or something!

Anthea
Dec 19 '06 #7
OK I obviously didn't read it thoroughly enough...

tblMembersInterests will contain the name and email address of each member and there will be a separate record for them for every interest they have e.g.

Jason; King; jking@hotmail...; new services
Jason; King; jking@hotmail...; new courses
Andrew; Jones; andrewjones@aol...; special offers

So I just need to create a query each time I want to send to a specific mailing list e.g. show me everyone where 'new services' is in the interests field??

Ok, tell me I don't gotta make teapots!!!
Dec 19 '06 #8
NeoPa
32,556 Expert Mod 16PB
Your earlier post is probably the better answer.
This is principally what Vladi (PEB) was suggesting. I misread your request a bit and my suggestion was not in line with what you needed.
In short, it doesn't sound like you'll need to worry about those teapots.
Dec 19 '06 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: theoryboy | last post by:
I'm trying to implement multiple selection functionality in a Tix Hlist using a control-click. I've bound control-click to a function that uses selection_set to add to the selection, but it doesn't...
5
by: jason | last post by:
I could sure use some conceptualization and query help with a Page Watch System I am building in Access 2000 and Asp. I need to cycle through databae and generate a compiliation query email that...
1
by: jeffgeorge | last post by:
Trying to create multiple acct reports based on the selection in a list box. I've set the list box for multiple selections, and in the report data source, I have a SQL statement which is reading...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
2
by: Craig B. | last post by:
I am relativly new to access 2000 and am having some trouble with a report. I am not sure what I want to do is something I can do in access. I want to be able to choose from a combo box multiple...
2
by: bienwell | last post by:
Hi all, I've got a problem with getting the data values from multiple selections in the list box. I could only get the value and the index of the first item from the selection, but not the...
4
by: tbayse | last post by:
Hello, I have a question about making multiple selection queries in Access. I am running windows XP and Access 2003. Up until this point I had a form where a user would make single selections from...
0
by: Germaris | last post by:
Hi there! Is it possible to make multiple selections in a ComboBox ? i.e. make n consecutive selections and store them in an array or make n selections in the open list of the CB by using (for...
12
by: micarl | last post by:
How would i print a report based on criteria selected from several Combo Boxes as well as multiple Multi Select List Boxes, that are located on the same form? I can get one Multi List Box, just...
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: 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: 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
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
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
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,...
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...
0
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...

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.