A company can have many terminals. You can have many companies though. I
don't want other companies listed among my "1301".
The OR logic isn't going to give you what you want:
SELECT Company.NU_COMPANY_ID, Terminals.VC_LOCATION,
Driver.VC_FIRST_NAME,
Driver.VC_LAST_NAME, Driver.NU_SSN, Driver.VC_LICENSE_NUMBER
FROM Company INNER JOIN (Terminals INNER JOIN (Regions INNER JOIN
Driver ON
Regions.NU_REGION_ID = Driver.NU_REGION_ID) ON
Terminals.NU_TERMINAL_ID =
Driver.NU_TERMINAL_ID) ON Company.NU_COMPANY_ID =
Regions.NU_COMPANY_ID
WHERE (((Company.NU_COMPANY_ID)="1301") AND
((Terminals.VC_LOCATION)<>"102
Albany GA")) OR (((Terminals.VC_LOCATION)<>"105 - Lebanon, TN")) OR
(((Terminals.VC_LOCATION)<>"121-Dallas")) OR
(((Terminals.VC_LOCATION)<>"130- Allentown, PA")) OR
(((Terminals.VC_LOCATION)<>"2100 Covington")) OR
(((Terminals.VC_LOCATION)<>"2200 Youngwood, PA")) OR
(((Terminals.VC_LOCATION)<>"2300 DeForest")) OR
(((Terminals.VC_LOCATION)<>"510 - Indianapolis, IN"))
ORDER BY Terminals.VC_LOCATION;
If the LOCATION field is "102 Albany GA" then the first OR clause will
be FALSE - BUT if it's "102 Albany GA" then it is NOT equal to
"121-Dallas", so the third one will be TRUE, and the record will be
retrieved. OR means "retrieve the record if any one of these
conditions is true"!
Either change all the OR's to AND's, or use the NOT IN syntax:
SELECT Company.NU_COMPANY_ID, Terminals.VC_LOCATION,
Driver.VC_FIRST_NAME,
Driver.VC_LAST_NAME, Driver.NU_SSN, Driver.VC_LICENSE_NUMBER
FROM Company INNER JOIN (Terminals INNER JOIN (Regions INNER JOIN
Driver ON
Regions.NU_REGION_ID = Driver.NU_REGION_ID) ON
Terminals.NU_TERMINAL_ID =
Driver.NU_TERMINAL_ID) ON Company.NU_COMPANY_ID =
Regions.NU_COMPANY_ID
WHERE Company.NU_COMPANY_ID="1301" AND Terminals.VC_LOCATION NOT
IN("102 Albany GA", "105 - Lebanon, TN", "121-Dallas", "130-
Allentown, PA", "2100 Covington", "2200 Youngwood, PA", "2300
DeForest", "510 - Indianapolis, IN")
ORDER BY Terminals.VC_LOCATION;