Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Everyone, I am working on a m

Status
Not open for further replies.

karren

Programmer
Feb 26, 2002
42
CA
Hi Everyone,

I am working on a mailing list where one table (artistnames)holds all the music artist's names and artistnameID, which are displayed upon registering for the subscriber to choose from. Another table (newsprefs) holds the subscriber's email address with the subsciber's mailing list preference (artistnameID, which is beside the person's email address).

once a user is registered, they can change their mailing list preferences by logging in and editing their existing info.

my problem is that i want to display all those artists in the artistnames table which the user has NOT subscribed to, so that they may have the option of subscribing to those artists if they want to.

does any body know how i would go about doing this?? if you need more info, just let me know!!

thanks everyone for your help! :)

 
This is a suggestion and they may be a better way.
Create a table to hold the member id and their music selections as individual records.
Then use a select statement something like this

SELECT * FROM ArtistNames
WHERE ArtistID NOT IN
(SELECT ArtistID,MemberID FROM MembersChoice where MemberID = " & memberid & "'")
Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
thanks gary! i will try this out and let you knwo what happens :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top