N
nybaseball22
Hello. I have two unbound text boxes on a form that opens as a
subform on a main form. I have a DMax and DMin string pointing to a
query. I have the query with a descending sort on one of the fields.
When the boxes look to the query, they sometimes come up out of
order. I have tried sorting both ascending and descending and the
same problem is occuring.
The query always sorts correctly, so I don't know why the form is
pulling them out of order. Is there a wya I can code the first text
box to take the first record in the query, and the second text box to
take the second record in the query?
The form is unbound because it uses DMax, Dmin, and DLookup from
several different queries.
Thanks.
This is the code I am using for the text boxes.
=DMax("[Station]","AutosGasStats1Station")
=DMin("[Station]","AutosGasStats1Station")
subform on a main form. I have a DMax and DMin string pointing to a
query. I have the query with a descending sort on one of the fields.
When the boxes look to the query, they sometimes come up out of
order. I have tried sorting both ascending and descending and the
same problem is occuring.
The query always sorts correctly, so I don't know why the form is
pulling them out of order. Is there a wya I can code the first text
box to take the first record in the query, and the second text box to
take the second record in the query?
The form is unbound because it uses DMax, Dmin, and DLookup from
several different queries.
Thanks.
This is the code I am using for the text boxes.
=DMax("[Station]","AutosGasStats1Station")
=DMin("[Station]","AutosGasStats1Station")