Switch views in subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to be able to switch between single form and datasheet view in my subform using a command button or custom menu item(s). I am unable to determine how to change the view using code. Standard menus will not be available in the application. Any help is appreciated.
 
S. Powers said:
I would like to be able to switch between single form and datasheet view in my subform using a command button or custom menu item(s). I am unable to determine how to change the view using code. Standard menus will not be available in the application.


Personally, I think a custom (or even the default) shortcut
menu would be the way to go.

To do it in code behind a button on the main form:

Me.subformcontrol.SetFocus
DoCmd.RunCommand acCmdSubformDatasheet
 
Back
Top