1:
SELECT * FROM RawData AS a WHERE (DataOrigin = '" + OrgSelection + "') AND (DateTime >= '" + UBDate + "') AND (DateTime <= '" + UEDate + "' AND NOT EXISTS (SELECT * FROM PrintData AS b WHERE b.[ID] = a.[ID]))
Closing bracket missing:
"SELECT a.* FROM RawData AS a LEFT JOIN PrintData AS bON b.[ID] = a.[ID]WHERE (a.DataOrigin = '" + OrgSelection + "') AND (a.DateTime >= '" + UBDate + "') AND (a.DateTime <= '" + UEDate + "')AND b.[ID] IS NULL "