I'm not sure which forum this belongs in, so I'll start here.
I write a record to an Access DB and shortly thereafter try to read it back. No record is returned.
I break @ the re-read and check Access with its IDE. No record shows. I refresh in Access and still no record.
If I let the process run to termination (ie, back to the screen) and then attempt the re-read, the record is there (both in the application and the Access IDE).
I seem to recall there is a 'flush' type process that can be called to write dirty buffers, but I can remember what it's called (or really if it exists or is just my Old Memorex Memory).
Any ideas (Please don't ask for code -- its about 1000 lines
.
Roger

DB Timing Issue (I think)
M.A.T
facemate
I suspected as much. My code is now working because the DB is Closed and Reopened.
10 years
I know things move slowly in Washington, but 10 years
I'm getting close to moving to SQL anyway (deployment reasons mostly).
Thanks for the reply.
Roger
rwbogosian
Vishal Shah
This is definetely a timing issue.
The command I was looking for was 'AcceptChanges' -- found it in some old notes.
But, that didn't help!
I "solved" the problem by setting a flag and doing the processing AFTER all the first pass processing was complete.
I would still like to know how to do this "in-line" rather than my hokum way if anyone has an answer.
Thanks
Roger
bloodCLASSIQUE
Hi,
It is very difficult to help without an example, you could at least show psuedo code.Here is an example from a part of code in one of my Access Databases that works fine, the record is changed immediately after the .update.
balanceset.MoveFirstDo While Not balanceset.EOF
If balanceset!Item = xOld Then
balanceset.Edit
balanceset!Item = xNew
balanceset.Update
End If
balanceset.MoveNext
Loop
rcook349
I opened a support case about it with MSFT at the time, no help. There's no fix other than moving to a "real" database engine like SQL server...