from the switchboard, is it possible to view the form opened in datasheet view?
I rather expect, from the wording of your message, that the
'switchboard' is the one created by the Access built-in switchboard
manager. If not, then Wayne's method is the one to use.
Regardless of how you have set up the Default View of your form to
open, if you are opening it from an event on another form you
must specify Datasheet view:
DoCmd.OpenForm "FormName", acFormDS
Life would be simpler for you if you didn't use the built-in
switchboard, but made use of an unbound form with command buttons.
Much more versatile, and easier to maintain.
And Access will write most of the code if you use the command button
wizard.
Which brings us back to your opening the form in datasheet view.
You'll need to first go into the Switchboard code window to add some
code.
Open the Switchboard Code window.
Find the
Private Function HandleButtonClick(intBtn As Integer)
code line.
A few lines down you'll find the Constants listed.
Add
Const conCmdOpenFormDS = 9
at the end of the list (I believe there are originally just 8
constants).
Then go down further into the Select Case statements.
Add
Case conCmdOpenFormDS
DoCmd.OpenForm rst!Argument, acFormDS
just before the Case Else statement.
Close the code window.
Open the Switchboard Items table.
Change the Command value for the form you wish to
open in datasheet view from it's current number (either 2 or 3) to 9.
That should do it.
You cannot make or edit this change using the Switchboard manager.
You must work around it, as above.