Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subform sort order

Status
Not open for further replies.

kronar30

Programmer
Sep 8, 2004
74
US
After User enters a new record, I do a form requery using this code. But records always display in ascending order. Even when I take the DESC out.


qrycall = ChangeQueryDef("UpdateTimeQuerybyDate", "select * from [JBT_EmpTime] where JBT_Date = #" & hldDate & "# and JB_JobBidNo = '" & hldJobNum & "' order by JBT_Date DESC")

[TimebyDate].Form.Requery

How can I make it display in reverse order??
Thanks for all the help
 
That may be the answer. If the query was intended to list by descending order of Time-of-Day, filtered to a single day, then it won't return anything at all unless JBT_Date and hldDate have been trimmed down to integers, in which case there is no time-of-day information for the Order By to use... In which case the records will be returned in whatever order Access feels like using.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top