Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个表单,它按每条记录的递增数字的降序显示记录。虽然在我插入一条新记录后,记录顺序是这样的:
4, 3, 2, 1, 5
但我需要它在插入后看起来像这样:
5, 4, 3, 2, 1
我有以下代码 onLoad 对问题进行排序,但我想在输入新记录后对记录进行排序。
Me.OrderBy = "Table1.Field1 DESC" Me.OrderByOn = True
有任何想法吗?
您可以重新查询:
Private Sub Form_AfterInsert() Me.Requery End Sub