Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 14th, 2005, 07:32 PM
Authorized User
Join Date: Aug 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Switchboard ?s

Can I have a Switchboard button to open up a form in Datasheet view?
Also, can I have another button open a query?
Thanks a lot in advance.

Old September 15th, 2005, 02:52 AM
Friend of Wrox
Join Date: Jan 2005
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts

Hi ya,

Of course you can. Just use the docmd.openform method. You can then specify in what view you want the form opened. e.g

Private Sub cmdSwitchBoardButton1_Click()
    DoCmd.OpenForm "Your_Form", acFormDS
End Sub
The same applies to the query using docmd.openQuery,
Private Sub cmdSwitchBoardButton2_Click()
    DoCmd.OpenQuery "Your_Query", acViewNormal
End Sub
Good Luck.

Similar Threads
Thread Thread Starter Forum Replies Last Post
switchboard error damnnono_86 Access 23 April 2nd, 2007 08:29 AM
Switchboard Size ru1 Access 1 April 18th, 2006 11:31 AM
Switchboard Manager penta Access 2 March 10th, 2005 06:43 AM
Opening Switchboard with VBA rhysduk Access VBA 0 September 9th, 2004 02:53 PM
switchboard problems zisko3 Access 2 January 31st, 2004 03:52 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.