I am trying to Inner Join Two Tables in a DataBase that I have made an SQL Connection To. I am trying to pull data some extra data fields by Company. The GLTRANS and GLNAMES Tables both contain Primary Keys on the Field COMPANY.
I am pulling data into an Array so that I can reference each String Part by Name.
My Coding is giving an SQL EXCEPTION: An expression of non-boolean type specified in a context where a condition is expected, near 'WHERE'. I can't seem to find the exception...
This Exception Appears and is yellowed on ODA.Fill(oTable)
SQL CODING: Dim sSQL As String = "SELECT COMPANY, FISCAL_YEAR, ACCT_PERIOD, CONTROL_GROUP, LINE_NBR, POSTING_DATE, OBJ_ID, STATUS, ACCT_UNIT, ACCOUNT, TRAN_AMOUNT, ACCT_AMOUNT, VAR_LEVELS FROM GLTRANS INNER JOIN GLNAMES ON COMPANY WHERE COMPANY = " & sParm & ";"
Any help is appreciated.
AlleyCat