N
nutmeg
I have a search that I would like to have run from three tables.
'strSQL = "SELECT tblHouses.RollNumber, tblHouses.PID,
tblHouses.FirstOfHouseAddress, tblAccounts.AccountNo, tblListNos.MainListNo1,
tblListNos.MStatus, tblListNos.ProjectID, tblHouses.Strata,
tblHouses.Inactive, tblHouses.FirstOfPostalCode,
tblHouses.FirstOfHouseNumber, tblHouses.FirstOfRoadName, tblHouses.LotNo,
tblHouses.Telephone1, tblHouses.Telephone2, tblListNos.MPriority,
tblListNos.MaintenanceComments, tblListNos.MainIssuedDate " _
'& "FROM (tblHouses LEFT JOIN tblListNos ON tblHouses.RollNumber =
tblListNos.RollNumber) LEFT JOIN tblAccounts ON tblHouses.RollNumber =
tblAccounts.FolioNo " _
'& "ORDER BY tblHouses.RollNumber"
Each time I try to run it I get the following error message.
Syntax error (missing operator) in query expression 'tblHouses.RollNumber
WHERE [tblHouses].[FirstOfHouseAddress] = '12662 112A AVE 1''.
Can anyone tell me what the problem might be.
Thank you,
'strSQL = "SELECT tblHouses.RollNumber, tblHouses.PID,
tblHouses.FirstOfHouseAddress, tblAccounts.AccountNo, tblListNos.MainListNo1,
tblListNos.MStatus, tblListNos.ProjectID, tblHouses.Strata,
tblHouses.Inactive, tblHouses.FirstOfPostalCode,
tblHouses.FirstOfHouseNumber, tblHouses.FirstOfRoadName, tblHouses.LotNo,
tblHouses.Telephone1, tblHouses.Telephone2, tblListNos.MPriority,
tblListNos.MaintenanceComments, tblListNos.MainIssuedDate " _
'& "FROM (tblHouses LEFT JOIN tblListNos ON tblHouses.RollNumber =
tblListNos.RollNumber) LEFT JOIN tblAccounts ON tblHouses.RollNumber =
tblAccounts.FolioNo " _
'& "ORDER BY tblHouses.RollNumber"
Each time I try to run it I get the following error message.
Syntax error (missing operator) in query expression 'tblHouses.RollNumber
WHERE [tblHouses].[FirstOfHouseAddress] = '12662 112A AVE 1''.
Can anyone tell me what the problem might be.
Thank you,