Results 1 to 5 of 5

Thread: is my code being skipped???????

Threaded View

  1. #4
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: is my code being skipped???????

    There is a caching problem/issue with dao.

    When you update the db it is not immediately updated (I found a link somewhere about this I'll see if I can redig it up and post you a link.

    Essentially you need to flush the cache of the db once you've closed the recordset you've updated. Then the db and anything looking at it should pull the right data.

    Edit:
    One thread
    Try searching under JRO and CacheRefresh (or RefreshCache)
    If you are using DAO its in the dbengine or application (I think) Or was there somewhere. I used it with a DAO connection to access 97 from vb5. I had the same problem that the record data was in the tables but wasn't getting there before the program queried the table.
    I'll see about other links...
    KB MSDN link, More MS stuff

    JRO looks like the only way to go. Could've sworn there was another way.
    >>> DBEngine.Idle dbRefreshCache <<<
    DAO (heheh) and possibly the Access Application - forces the db to finish stuff off
    Last edited by Ecniv; May 13th, 2005 at 03:31 AM.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width