Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle between Views?

Status
Not open for further replies.

PennWhite

Programmer
Sep 2, 2002
20
US
Does anyone know if it is possible to use a 'toggle' button to switch between form view and datasheet view for a form? I've tried working with docmd and with a macro openview but neither seem to work. I can do it from the View option on the Menubar but can't figure it out programatically.

Thank you,

Penn
 
This switches it to Datasheet view:
DoCmd.RunCommand (acCmdDatasheetView)

And this switches it to Form View:
Docmd.RunCommand (acCmdFormView)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top