Re: Reading Access DB: get someteimes Data - sometimes not
From: Val Mazur (group51a_at_hotmail.com)
Date: 07/29/04
- Next message: Val Mazur: "Re: VBA + MS SQL"
- Previous message: Val Mazur: "Re: VB & MS Access"
- In reply to: Marcel Gätzi: "Re: Reading Access DB: get someteimes Data - sometimes not"
- Next in thread: Jim Rodgers: "RE: Reading Access DB: get someteimes Data - sometimes not"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Jul 2004 21:34:43 -0400
Hi Marcel,
Try to run Component Checker, which ships with MDAC to see if MDAC
installation is OK. Did you check if you are not experiencing any memory
leaks in your application? Try one more solution - close your connection to
the database periodically. It should release some memory, which Jet holds
when you open multiple recordsets.
-- Val Mazur Microsoft MVP "Marcel Gätzi" <MarcelGtzi@discussions.microsoft.com> wrote in message news:35748F48-8887-4D65-8AC0-40AB35695980@microsoft.com... > Hi Val, > > I'm glad you don't see anything wrong in my Code. I use the "if rst.BOF > ..." line for debuging reasons. You mentioned "MDAC corruption". Can this > explain the situation? > > I don't get no data on this specific server - it works fine until a > certain time, after this I only get EOF and after another while the server > crashes. Who can I fix MDAC corruption? > > Thank you very much for your help! > > Marcel > > "Val Mazur" wrote: > >> Hi, >> >> I do not see anything wrong in a code, except it could be simpler. If it >> works on all PCs, except one, then it could be related to the MDAC >> corruption. Do you get any error message? >> Your code actually should look like (you do not need to check for BOF and >> EOF in your case and do not need to use MoveNext) >> >> Set rst = cmd.Execute() >> >> If Not rst is Nothing Then >> Do While Not rst.EOF >> '************************* in the beginning, data is retrieved >> Call rst.MoveNext >> Loop >> End If >> >> -- >> Val Mazur >> Microsoft MVP >
- Next message: Val Mazur: "Re: VBA + MS SQL"
- Previous message: Val Mazur: "Re: VB & MS Access"
- In reply to: Marcel Gätzi: "Re: Reading Access DB: get someteimes Data - sometimes not"
- Next in thread: Jim Rodgers: "RE: Reading Access DB: get someteimes Data - sometimes not"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|