View Full Version : From Single View to Datasheet View


kw
01-30-2001, 07:24 PM
I have a subform which is displayed as a single form. I want to make a command button that can display it in datasheet view without having to right-click on the subform itself.

What should the codes be in the event procedure? Thanks

pdx_man
01-31-2001, 07:45 AM
put a button on the subform.
onclick -
DoCmd.RunCommand acCmdSubformDatasheet

kw
01-31-2001, 06:18 PM
pdx_man,

That works fine, but what if I wanted to toggle back to single view from datasheet view? Is it possible to create a button on the main form itself to toggle between views?