Code:
DoCmd.DoMenuItem A_FORMBAR, 2, 1, , A_MENU_VER20
On the next line
Code:
DoCmd.GoToControl "btnStats"
I'm getting (intermittently) error
There is no field named 'btnStats' in the current record.
I'm yet to workout why this sometimes is ok, other times not.