When you open a form from any other form it will always open in form view,
unless you specifically open it using:
DoCmd.OpenForm "FormName", acFormDS
If this is a user made switchboard, just add ,acFormDS to the code.
If this is the Access switchboard made using the built-in switchboard
manager, you'll have to go into the code window, find 'Function
HandleButtonClick',
Dim a new constant
Const conCmdOpenFormDS = 10 ' or whatever your next higher number is
and then add some code in the Select Case statement
to tell the function to open the form acFormDS:
Case conCmdOpenFormDS
DoCmd.OpenForm rst![Argument]
Then change the Command value in the switchboard table to that new constant
number.
If you wish to make it even easier, code a Public Module
DoCmd.OpenForm "FormName",acFormDS
Then change the switchboard to RunCode and give it this Sub's Name.
Have fun.
--
Fred
Please reply only to this newsgroup.
I do not reply to personal e-mail.
Annelie said:
When I create a form and set it to datasheet view, opening the form always
shows the datasheet view.
But when the form is opened using the switchboard, it always opens in forms
view, even the defaults are set to Datasheet only
Can that be changed?