Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Join Query Not working

$
0
0
I have two tables “tblAssets” and “tblMaintContracts”, which I need to query to get only the assets with maintenance contracts. I am getting Runtime error ‘3075’: Syntax error in query expression.
This is my code:

Dim strSQL As String

'Display only assets (equipment) with maintenance contracts
strSQL = "SELECT tblAssets.* " & _
"INNER JOIN tblMaintContracts.* " & _
"ON tblAssets.AssetId = tblMaintContracts.AssetId;"

‘populate form with recordset
Form_frmAssetsContracts.RecordSource = strSQL

Do you see anything askew?
Thanks for your help.

Viewing all articles
Browse latest Browse all 13329

Trending Articles