W
WiseMonkey
Can anyone help me with why this SQL string is throwing up a "Missing
Operator" error when run from VBA?
(I bet it's something simple right?)
strSQL = "SELECT tblVendors.vID, tblVendors.vName, tblCommodityProjs.BidNum,
tblCommodityProjs.BidTitle,tblVendors.vHub, tblVendors.vNonMinority," & _
"tblVendors.vHubAFAM, tblVendors.vHubAmInd,
tblVendors.vHubAsAm, tblVendors.vHubHisLatAm, tblVendors.vHubW,
tblVendors.vHubD," & _
"tblVendors.vHubDisad, tblVendors.vHubUnd,
tblVendors.vHubUnk, tblVendors.vDOBE, tblVendors.vNPWCFTB" & _
"FROM tblCommodityProjs " & _
"LEFT JOIN (tblCommTrans LEFT JOIN tblVendors ON
tblCommTrans.vName = tblVendors.vID) ON tblCommodityProjs.bID =
tblCommTrans.sBid" & _
"WHERE (((tblVendors.vHubAFAM) = True))" & _
"ORDER BY tblVendors.vName;"
Operator" error when run from VBA?
(I bet it's something simple right?)
strSQL = "SELECT tblVendors.vID, tblVendors.vName, tblCommodityProjs.BidNum,
tblCommodityProjs.BidTitle,tblVendors.vHub, tblVendors.vNonMinority," & _
"tblVendors.vHubAFAM, tblVendors.vHubAmInd,
tblVendors.vHubAsAm, tblVendors.vHubHisLatAm, tblVendors.vHubW,
tblVendors.vHubD," & _
"tblVendors.vHubDisad, tblVendors.vHubUnd,
tblVendors.vHubUnk, tblVendors.vDOBE, tblVendors.vNPWCFTB" & _
"FROM tblCommodityProjs " & _
"LEFT JOIN (tblCommTrans LEFT JOIN tblVendors ON
tblCommTrans.vName = tblVendors.vID) ON tblCommodityProjs.bID =
tblCommTrans.sBid" & _
"WHERE (((tblVendors.vHubAFAM) = True))" & _
"ORDER BY tblVendors.vName;"