What I would suggest is to print out the query and see if you can execute it from an SSMS window. It seems to me that your query is something like:SELECT * from ActinicPersonsNew ActinicOrdersNew WHERE [Contact ID] ....
May be you need a comma somewhere in there?rsSelectOrder.Source = "SELECT * from " &ActinicPersonsNew&" ,"&ActinicOrdersNew&" WHERE [Contact ID] = [Invoice Contact ID] AND [Order Number] NOT IN ( SELECT OrderNumber from dbo.tbl_QuasarOrdersEntered)"