lse123
08-02-2007, 04:58 PM
When I use INNER JOIN to join two tables how I can use a filter: two fields one in the first and another in the second table to equal two vars [tell me an example] ?
this is correct: SELECT table1.name, table1.address, table2.AID FROM table1 INNER JOIN table2 ON table1.name='" & Name & "' AND ON table2.AID='" & ID & "'"
this is correct: SELECT table1.name, table1.address, table2.AID FROM table1 INNER JOIN table2 ON table1.name='" & Name & "' AND ON table2.AID='" & ID & "'"