ADO question - pass thru query for sql server using EXISTS

  • I was first looking if access could run a stored procedure to SQL Server and get a result set back.  Instead I'm now basically looking if a record exists with a certain ID in a table (example:  select * from thistable where id = 'id_supllied_from_access').  I've done 'EXISTS' query's in sql analyzer and thats basically what I need - can I do the same through ADO in ACCESS?  Thanks for your help as I'm still getting familar with ADO.

  • Select * From ThisTable Where ID IN(Select ID From ThatTable)

    OR

    Select * From ThisTable Where ID NOT IN(Select ID From ThatTable)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply