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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matching help

Status
Not open for further replies.

Terminus

IS-IT--Management
Jul 16, 2003
31
GB
Help i need to match two tbls!!!!

What i have is one table with info on contacts Ie

tblContacts
Contact---Interest---InterestName
1 ---3 ---Swimming
1 ---4 ---Football
2 ---4 ---Football

And then another tbl (tblmailshot)with
MailshotID---Interest
1 ---3
1 ---4

This information is created by via a form using list boxes. On the form tblmailshot users select which contacts hey want to find by selecting possible interests, see tblmailshot above.

The problem i have is that i need an SQL statement that will select only users which have been selected by tblmailshot. Because all i can get it to do is select contacts with 'Interest 4' OR 'Interest 3' not AND

Can any1 help?

Ross
 
How are you using the data? You might have a main form with a listbox to set the interests and a subform with all the interests.

rollie@bwsys.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top