G
Guest
I am opening a form in either data entry mode or a filtered view, using
docmd.openform to set the mode and filter.
Dim stName As String
Dim lchoice As Long
lchoice = Me!choice.Value
stName = "accruals"
If lchoice = 1 Then
DoCmd.OpenForm stName, acNormal, , , acFormAdd
Else
DoCmd.OpenForm stName, acNormal, , "[mthend] = #03/31/2006#"
End If
Problem: With the filter option, the records appear in the form in an odd
order. I would expect them to appear in key field order as they do without
the filter. Why that result? Is there a better approach to applying the
filter, or should I add a sort to the form open event?
DM
docmd.openform to set the mode and filter.
Dim stName As String
Dim lchoice As Long
lchoice = Me!choice.Value
stName = "accruals"
If lchoice = 1 Then
DoCmd.OpenForm stName, acNormal, , , acFormAdd
Else
DoCmd.OpenForm stName, acNormal, , "[mthend] = #03/31/2006#"
End If
Problem: With the filter option, the records appear in the form in an odd
order. I would expect them to appear in key field order as they do without
the filter. Why that result? Is there a better approach to applying the
filter, or should I add a sort to the form open event?
DM