G
Guest
I posted a question last week about a query that was supposed to draw text
data from a date-sorted table and concatenate the text up to a max of 50
characters, then write it to an output field in a different table. Problem
was that although the source table was sorted, the concatenated data was not,
so instead of getting the FIRST few records in my output I was getting them
in more or less random order.
I solved my immediate problem with some easier-than-I-thought-it-would-be
VBA; opening the table and using the good ol' MoveFirst/MoveNext brought up
the records in date order, exactly the way they show in the table.
But I'm still curious about WHY the query approach was grabbing data from
all over the map instead of in the order the records appear in the source
table. Can anybody 'splain me that using short words I might be able to
understand? I've been doing quite a lot of things on the assumption that a
query works its way through the source table in the sequence you see on the
screen when you open the table, and if that ain't necessarily so then I'm
going to have to revise my thinking.
data from a date-sorted table and concatenate the text up to a max of 50
characters, then write it to an output field in a different table. Problem
was that although the source table was sorted, the concatenated data was not,
so instead of getting the FIRST few records in my output I was getting them
in more or less random order.
I solved my immediate problem with some easier-than-I-thought-it-would-be
VBA; opening the table and using the good ol' MoveFirst/MoveNext brought up
the records in date order, exactly the way they show in the table.
But I'm still curious about WHY the query approach was grabbing data from
all over the map instead of in the order the records appear in the source
table. Can anybody 'splain me that using short words I might be able to
understand? I've been doing quite a lot of things on the assumption that a
query works its way through the source table in the sequence you see on the
screen when you open the table, and if that ain't necessarily so then I'm
going to have to revise my thinking.