Switchboard & Forms

G

Guest

I have a couple forms that when opened, I have them display in Datasheet form
view. I added a switchboard and now when I open the forms through the
switchboard, they open in the columnar view. What do I need to do to make
the forms open up in the view I want (datasheet)?
 
G

Guest

Hi

Open the forms in design view and on the properties box set the default view
to Datasheet



Hope this helps
 
F

fredg

I have a couple forms that when opened, I have them display in Datasheet form
view. I added a switchboard and now when I open the forms through the
switchboard, they open in the columnar view. What do I need to do to make
the forms open up in the view I want (datasheet)?

Regardless of a form's default view setting, if you open the form by
code you MUST specify Datasheet view, i.e.
DoCmd.OpenForm "FormName", acFormDS
 
G

Guest

I am a fairly new user to Access, and I am unsure of what you're talking
about. If I can change the code to the way you describe, is this the code
for the form, or I would probably be guessing, the code for the switchboard?
How do I view the code to make this change?

chris
 
F

fredg

I am a fairly new user to Access, and I am unsure of what you're talking
about. If I can change the code to the way you describe, is this the code
for the form, or I would probably be guessing, the code for the switchboard?
How do I view the code to make this change?

chris
The code would be on the switchboard.

The problem, Chris, is that you asked a broad question and are looking
for a specific answer.
What kind of switchboard?
Did you create it yourself using an unbound form with command buttons?
Do you know how to find the code?
If so, what is the actual code used to open the form?

Generally, find the command button that you use to open the form and
change it's click event code to:

DoCmd.OpenForm "FormName", acFormDS

substituting the actual form name for "FormName".
You may have additional code involved so all I can do is give you a
generic answer.

If, however, you used the switchboard created by the built-in
Switchboard Manager, you do have a bit of additional work. If that is
the case, post back with more information.
Do you always wish to open that form in Datasheet and never in Single
or Continuous view?
Do you use the switchboard to open other forms in continuous or single
view?
You can add a constant command to open the form in DS, however you
will have to manually change a value in the Switchboard Items table.
The Switchboard manager cannot do this for you. You'll need to post
back.
 
G

Guest

One way that be easy is to have the switchboard call a macro that opens the
form and in the arguments for the action set it to datasheet view.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top