J
Jim Burke in Novi
I have a simple query, which selects both fields from a two-field table and
sorts them in descending order. NO criteria or anything. Obviously when I run
the query I see the sorted results. But when I use the DFirst function to get
the value for one of the fields from the first row in the query, it returns
one of the last values! Is this function really supposed to return the value
from the first row? Some of the doc I read says it returns a random value,
which to me makes no sense. I had to change my code to open the query via a
recordset, move to the first row and get the values that way, which works
fine.
sorts them in descending order. NO criteria or anything. Obviously when I run
the query I see the sorted results. But when I use the DFirst function to get
the value for one of the fields from the first row in the query, it returns
one of the last values! Is this function really supposed to return the value
from the first row? Some of the doc I read says it returns a random value,
which to me makes no sense. I had to change my code to open the query via a
recordset, move to the first row and get the values that way, which works
fine.