K
kiln
I have an Access 2000 parent form with a subform control. I need to be
able to switch the subform between form view and datasheet. But I can't
get the basic actions to work. If I use either
subForm.SetFocus
RunCommand acCmdDatasheetView
or
subForm.SetFocus
subForm!VersionID.SetFocus
RunCommand acCmdDatasheetView
the main form, the one hosting the subform control, goes into
datasheet. That's not supposed to be happening. Code is running from the
main form. If I try to use RunCommand acCmdDatasheetView from inside the
subform, I get error 2174: You can't switch to a different view at this
time, code is executing etc.
What's the deal with this?
able to switch the subform between form view and datasheet. But I can't
get the basic actions to work. If I use either
subForm.SetFocus
RunCommand acCmdDatasheetView
or
subForm.SetFocus
subForm!VersionID.SetFocus
RunCommand acCmdDatasheetView
the main form, the one hosting the subform control, goes into
datasheet. That's not supposed to be happening. Code is running from the
main form. If I try to use RunCommand acCmdDatasheetView from inside the
subform, I get error 2174: You can't switch to a different view at this
time, code is executing etc.
What's the deal with this?