MS Access forms bound to SQL Server tables accessed over ADO ?


Is it possible to replace:
  • an Access form bound to a linked table residing in SQL Server, i.e. using implicitly DAO
  • by an Access form bound to a table using an ADO connection
without having to write a lot of VBA code for:
  • loading the data in the form fields
  • updating fields of existing rows
  • Inserting new rows
  • deleting existing rows

I have only:
  • a large experience in using linked tables and ADO in Access
  • experience in using VB.Net with corresponding forms and datasets and datatables

Thanks for help
Bernard ThouinIT Analyst and developerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You can use the Recordset method of a form:

Dim rst As New ADODB.Recordset
rst.Open "SELECT * FROM SomeTable", YourConnection

Me.Recordset = rst

You'd also need to set a few other properties, like adUseClient, in order to edit. See this article:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bernard ThouinIT Analyst and developerAuthor Commented:
Thanks Scott, that solves my problems :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.