SELECT Field1, Field2, Field3
FROM Table1
INNER JOIN Table2
ON Table1.ID=Table2.ID
You're welcome. However, I just did a quick test, and I was off a little bit. It seems the JOIN expression requires the table names. Only the SELECT part doesn't. So, the ON clause has to be like this, even if the field names are different. Otherwise, you'll get a "JOIN expression not supported" error.Thank you DBGuy, that's good to know. Changing it now.
ON Table1.PK=Table2.FK
SELECT A.ID, Field1, Field2, Field3
FROM Table1 A
INNER JOIN Table2 B
ON A.ID=B.ID
SELECT A.ID, A.Field1, A.Field2, B.Field3
FROM Table1 A
INNER JOIN Table2 B
ON A.ID=B.ID
SELECT Table1.ID,Table1.Field1, Table1.Field2, Table2.Field3
FROM Table1
INNER JOIN Table2
ON Table1.ID=Table2.ID
Good luck!I've removed all table names. Aren't using a join (just one table in the query) so should be ok but stuck on something else now!
CJ Sorry I don't understand that A B example.
don't worry - you will do one daydon't understand that A B example.
With a Select statement, do you really need TableName.FieldName ?
A and B are aliases defined for the table names which can thereafter be used instead of the full/original table names.CJ Sorry I don't understand that A B example.
Query By Example.What is "QBE" ?