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.
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.