Okay, so I want to join two tables based on a pk and fk...but only where a field in the first table is equal to one of my variables.
I know the INNER JOIN comes before the WHERE, but I'm confused as to where to put the ON and the WHERE.
Here's what I have:
Is this correct?
Thanks!!
I know the INNER JOIN comes before the WHERE, but I'm confused as to where to put the ON and the WHERE.
Here's what I have:
Code:
[INDENT] strSQL = "SELECT pkManColorSizesID, fkSizeID, txtSize " & _
" FROM tblManufColorSizes INNER JOIN tblSizes" & _
" ON tblManufColorSizes.fkSizeID=tblSizes.pkSizeID " & _
" WHERE tblManufColorSizes.fkManColorsID = " & varColorID
[/INDENT]
Thanks!!