ms Access 表单子表单排序
我有一个表单,在其中指定表格视图中子表单使用的信息。然后,子窗体显示主窗体中指定的项目的条目。每个条目都有一个与之关联的日期。我希望条目按日期排序显示,以便最新日期位于底部,并且当您在子表单中添加条目(假设是今天的日期)时,它会出现在需要的位置。当然,当您查看不同的项目然后返回到该项目时,我希望排序将新项目放在适当的排序位置(以防万一新项目的日期比数据库中已有的项目早) )。
简而言之:如何指定表格形式的排序标准?
I have a form where I specify information that is used by a subform in tabular view. The subform then displays entries for the item specified in the main form. Each entry has a date associated with it. I would like the entries to show up sorted by date such that the latest dates are at the bottom, and when you add an entry in the subform (supposedly with today's date) it appears where it needs to be. Of course, when you view a different item and then come back to this item, I would like the sort to put the new item in its appropriate, sorted spot (just in case the new item has an earlier date than any already in the database).
In a nutshell: How do I specify a sort criteria for a tabular form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您向子表单添加记录,则需要重新查询并刷新表单。
If you add records to the subform, you'll need to requery and refresh the form.
如果您查看子表单的属性菜单,您将找到该表单所基于的查询。如果在该查询中您在日期列上选择“排序”顺序,则该顺序应该反映在表单上。
If you look in the property menu of the sub form, you will find the query that the form is based on. If in that query you select a 'Sort' order on the date column, that should be reflected on the form.