P
(PeteCresswell)
Just had a situation where a report came up with the wrong amount
on it.
Turns out I was basing it on some processing that was going
against a work table that I created on-the-fly.
I copied records into that table in ascending order by date and
browsing the table showed them in the expected sequence.
But when I opened a .RecordSet directly into the table, the first
record that came up was not the first one seen when browsing the
table.
A little light went on then - something about JET not
guaranteeing the sequence of records retrieved being the same as
the physical sequence.
Threw a query in there to explicitly sort the RS by desired date
and all was well.
Have I got it right about JET not making any promises
sequence-wise?
If so, what're the chances of this just happening yesterday and
not happening the other 768 times the report's been run? (that's
not such a critical question, thought, bc the processing depends
on a few things, like what the prior date was...and some entities
might have only one date....)
on it.
Turns out I was basing it on some processing that was going
against a work table that I created on-the-fly.
I copied records into that table in ascending order by date and
browsing the table showed them in the expected sequence.
But when I opened a .RecordSet directly into the table, the first
record that came up was not the first one seen when browsing the
table.
A little light went on then - something about JET not
guaranteeing the sequence of records retrieved being the same as
the physical sequence.
Threw a query in there to explicitly sort the RS by desired date
and all was well.
Have I got it right about JET not making any promises
sequence-wise?
If so, what're the chances of this just happening yesterday and
not happening the other 768 times the report's been run? (that's
not such a critical question, thought, bc the processing depends
on a few things, like what the prior date was...and some entities
might have only one date....)