tacieslik
Registered User.
- Local time
- Today, 12:48
- Joined
- May 2, 2001
- Messages
- 244
Keep getting a runtime error 2465 - Can't find the field . . .
This is my code:
I'm trying to set the focus of a field within a sub form so that I can sort the records. The subform is in datasheet view. Any ideas?
This is my code:
Code:
Private Sub btnSortByMonthAZ_Click()
Forms![frmSales]![sfrmSales].Form!fldMonth.SetFocus
DoCmd.RunCommand acCmdSortAscending
End Sub
I'm trying to set the focus of a field within a sub form so that I can sort the records. The subform is in datasheet view. Any ideas?