简体   繁体   中英

sorting a field in a access 2003 report field by a specific value

I'm trying to figure out if there is any vba way of sorting a report field in access 2003. I have this field that contains three different values " Estimated date", "Needs date" and "Date in"; what i need is for the field to be sorted first from AZ and then by Date. If anyone knows how to do this in either VBA or access2003 please let me know I'm fairly new to access and vba so any help would be greatly appreciated.

For an Access report, use the report Group and Sort option to define your sort order. That option over-rides any sort order established by the ORDER BY clause in the report's record source query.

I don't recall exactly where that option is found in the Access 2003 user interface, but suspect you can track it down. Meanwhile be aware that Microsoft will discontinue support for Office 2003 in April 2014.

Here is a screenshot from Access 2007 which shows where the option is located on the ribbon interface.

报告组和排序选项

Yes, go to the queries tab and create a new query based on your table and sort on those fields. Then modify your report to read data from the query and not directly from the table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM