Coded Example, Will it Work.

churchill

Registered User.
Local time
Today, 12:23
Joined
Aug 5, 2005
Messages
18
SELECT Table1.T1Field1, Table1.T1Field2, Table1.T1Field3
FROM Table1, Table2
WHERE (((Table1.T1Field1)=[Table2].[T2Field1])
AND ((Table1.T1Field2)=[Table2].[T2Field2])
AND ((Table1.T1Field3)=[Table2].[T2Field3]));

I took this code off another thread, and wodnered if it would work for mine.
I have two tables in the database, one is data we update monthly the other is data we get send monthly, each customer has a unique id, but not customer id's are included in the data we get sent. I need to match the customer by their id then the name and then the product group.

So firstly i want it to check the id if there is an id match then i want it to look for the product group. If there is no id i want it too look for the name then the product group. Will the code above work by doing this.
Thanks
 
This code will only return records if all three records match,

To get it to check each one individually change your 'ands' for 'ors'
 
thank you

thank you for your advice ill give it ago and see if i can egt it too work.
Thanks again.
 

Users who are viewing this thread

Back
Top Bottom