G
Guest
I'm writing a record to a table. This record has, as its primary key, an
auto-number field. I then immediately re-read the record I just posted, in
order to fetch that number (I need it for a step further down in the code).
However, the RECORDCOUNT of the recordset is 0. When I wait a few moments and
REQUERY, it's 1 (as it should be). It looks like the write is not getting
posted immediately. How can I force it, so my next read gets the newly added
record? I tried a BEGINTRANS and COMMITRANS pair, but that didn't do anything.
Any ideas?
thanks!
auto-number field. I then immediately re-read the record I just posted, in
order to fetch that number (I need it for a step further down in the code).
However, the RECORDCOUNT of the recordset is 0. When I wait a few moments and
REQUERY, it's 1 (as it should be). It looks like the write is not getting
posted immediately. How can I force it, so my next read gets the newly added
record? I tried a BEGINTRANS and COMMITRANS pair, but that didn't do anything.
Any ideas?
thanks!