Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 07:05 PM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 2
Thanked 0 Times in 0 Posts
Default ADO and updating records

My brief excursion from DAO to ADO using a JET backend on the server was less than rewarding. I had a continuous form that pulled data from a single table in the backend. Given those conditions, I would have thought that the recordset behind the continuous form would have been updateable ... it was not.

Unfortunately, I don't have the code any more. I was advised by an MVP on another newsgroup that a Jet backend is NOT updateable using ADO. I am using Access 2000 (at work).

Would anyone care to share their experiences with this type situation?

Thank you ahead of time for any help you can give! :)





--- Tom
__________________
--- Tom
 
Old June 10th, 2004, 01:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

IT all depends on how you open your data.
If, for example you do:
Code:
rs.LockType = adLockReadOnly
Then, true, the data won't be updateable
But if you open a recordset like:
Code:
rs.Open sSQL, YourConnection, adOpenKeyset, adLockOptimistic
Then, as Captain Planet would say - "The Power is Yours"



I am a loud man with a very large hat. This means I am in charge
 
Old June 11th, 2004, 09:26 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I will have to try this ... my recollection of trying this being linked to a single table in a JET 4 backend was that it would not work. I used the recordset as the source of my continuous form ... I could refresh the form, but not edit and update a record. I wonder if I should have used an unbound form and tried some type of word around like that.

Would you have an example of some code ... dim statements, setting the connection string, etc that would illustrate this? I must have gotten so frustrated, I deleted my examples.

Thanks,

"ADO Newbie"



--- Tom





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
Updating database records in ASP/ADO aismail3 Classic ASP Databases 5 September 16th, 2004 11:10 PM
ADO - Updating two tables? BradLee31 Pro VB 6 2 May 19th, 2004 05:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.