From: vircalendar via AccessMonster.com on
I'm trying to use a button on a main form to change the sort order of a sub-
subform.When I execute the following, I get runtime error 2465: application-
defined or object-defined error. opting to debug, I find the line with
orderbyon highlighted. Anybody see what's wrong?


Private sub timesort_click()

Forms![control]![worklist]![approved].Form.OrderBy = "Forms![control]!
[worklist]![approved]![time]"
Forms![control]![worklist]![approved].Form.OrderBy0n = True

End Sub

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-gettingstarted/201005/1