Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

Access, switchboard, forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tom - 28 May 2008 15:13 GMT
I set my form to datasheet view.  However when I use the switchboard it
appears as single form.  Can this be changed?  Thanks.
Signature

TomMurray

Jeff Conrad [MSFT] - 28 May 2008 16:46 GMT
Tom,

See this Switchboard FAQ page on my site:
http://www.accessmvp.com/JConrad/accessjunkie/switchboardfaq.html#datasheet

Signature

Jeff Conrad - Access Junkie - MVP Alumni
SDET - XAS Services - Microsoft Corporation

Co-author - Microsoft Office Access 2007 Inside Out
Presenter - Microsoft Access 2007 Essentials
http://www.accessmvp.com/JConrad/accessjunkie.html
Access 2007 Info: http://www.AccessJunkie.com

----------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.mspx
----------

>I set my form to datasheet view.  However when I use the switchboard it
> appears as single form.  Can this be changed?  Thanks.
fredg - 28 May 2008 17:44 GMT
> I set my form to datasheet view.  However when I use the switchboard it
> appears as single form.  Can this be changed?  Thanks.

Is this switchboard one you created yourself, using command buttons to
navigate to various objects.

Regardless of the form's Default View setting being Datasheet View,
when opening a form using code you MUST specify Datasheet view:
DoCmd.OpenForm "FormName", acFormDS

Simply add acFormDS to your existing code, as above.

However, if you have used the built-in switchboard manager to create
the switchboard, while you still must use acFormDS it's a bit
trickier.

You need to open the switchboard form's code window and manually add a
constant to the list in the Private Function HandleButtonClick(intBtn
As Integer) function:
Const conCmdOpenFormDatasheet = 10

Then further down in this same function, in the Select Case area, add
these 2 lines:

       Case conCmdOpenFormDatasheet
           DoCmd.OpenForm rs!Argument, acFormDS
           
Save the changes.
Open the Switchboard Items table.
Change the Command value from 2 or 3 to 10 for the form you wish to
open in datasheet view.

Note. You will not be able to edit these values using the switchboard
manager. You need to do it manually, as above.

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.