Conversion worked properly on
sql = "SELECT t.doc_sheet_nbr as code,t.doc_title as description " + _
"FROM myschema.mydoc t " + _
"WHERE t.facility = '" + Facility + "' " + _
"AND t.document_type = 'DRAW' " + _
"AND t.document_sub_type = '" + DocSubType + "' " + _
"AND t.document_nbr = '" + DocNumber + "' "
to
sql = "SELECT t.doc_sheet_nbr as code,t.doc_title as description " + "FROM myschema.mydoc t " + "WHERE t.facility = '" + Facility + "' " + "AND t.document_type = 'DRAW' " + "AND t.document_sub_type = '" + DocSubType + "' " + "AND t.document_nbr = '" + DocNumber + "' ";
What would be helpful is to maintain the CR/LF. This maintains the readability.