I'd be tempted to write this as a procedure, although running the SQL from access may run the sql on the server, most likely sql server will have to develop an execution plan each time which may add some significant time to overall processing of a complex job.
A stored procedure execution plan...
Hmmm i must be asleep this morning, i made the same mistake you made... :0)
so what i meant to say was... get the clients that were entered today from tbl.entry, then select those clients that aren't part of that sub-query result...
SELECT Client.ClientID, Client.LastName + ', ' +...
I'm not sure that you need to do the joins to get the result that you're after. I'd get the client id's from the entry table that have not had an entry today, then use them in your WHERE clause to return the client names you want. You could alternatively use a SELECT DISTINCT in the sub-query...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.