Update access database next recordset not grabbing update


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Update access database next recordset not grabbing update

  1. #1
    Join Date
    Nov 2005
    Posts
    11

    Update access database next recordset not grabbing update

    I am having a problem where I am updating several rows in a table. I then set the connection to nothing and close it. After that I set a recordset to the rows that I just updated and it is not grabbing the correct information. I know that the rows get updated because when I set a breakpoint in the program I cant replicate the problem. Just not updating quick enough. Is there a way to know if the updates have finished or to be sure the recordset is cleared from the last time?

    Any help thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    Not sure what is going on but you might try not closing and assigning your connection object to nothing. A recordset uses the connection object, so my guess is that it is simply returning the same data it had before, because the connection is no longer valid.

  3. #3
    Join Date
    Nov 2005
    Posts
    11
    you are right I am not closing the connection but I am closing the recordset. Either way the resolution to the problem was to change the recordset from a adodb to an ado. It turns out ado is faster or at least it is working for me.

  4. #4
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    Do you mean DAO? because ADODB is ADO.

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2006, 08:44 AM
  2. How to delete table from Access 97 database table
    By software_develo in forum Database
    Replies: 1
    Last Post: 01-31-2006, 10:58 PM
  3. access database: automatic update??
    By jackal in forum VB Classic
    Replies: 6
    Last Post: 04-03-2003, 07:19 AM
  4. Access 97 to 2000 Conversion Error
    By Michelle in forum VB Classic
    Replies: 8
    Last Post: 04-19-2002, 05:01 PM
  5. MS-Access Error - Obsolet Database Format !
    By Makl. Lemmertz in forum VB Classic
    Replies: 2
    Last Post: 10-29-2001, 11:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center