I am running SQL statement but get the title error. The form is a lookup combo box that is closed until a cmd button opens it.
strSQL = "SELECT tblTag.TagNumber, tblTag.TagID, tblEquipment.Equipment, tblEquipment.EquipID, tblTurnaround.TurnaroundID " & vbCrLf & _
"FROM tblTurnaround INNER JOIN (tblEquipment INNER JOIN tblTag ON tblEquipment.EquipID = tblTag.EquipID) ON tblTurnaround.TurnaroundID = tblTag.TurnaroundID " & vbCrLf & _
"WHERE (((tblEquipment.Equipment)=" & Forms("frmTagPrintEquip").Controls!cboEquipNumber.Value & ")) ORDER BY ([SOW_Number])ASC "
strSQL = "SELECT tblTag.TagNumber, tblTag.TagID, tblEquipment.Equipment, tblEquipment.EquipID, tblTurnaround.TurnaroundID " & vbCrLf & _
"FROM tblTurnaround INNER JOIN (tblEquipment INNER JOIN tblTag ON tblEquipment.EquipID = tblTag.EquipID) ON tblTurnaround.TurnaroundID = tblTag.TurnaroundID " & vbCrLf & _
"WHERE (((tblEquipment.Equipment)=" & Forms("frmTagPrintEquip").Controls!cboEquipNumber.Value & ")) ORDER BY ([SOW_Number])ASC "
Last edited: