How I open a form in datasheet view from a switchboard menu?

G

Guest

I am having troble opening a from in datasheet view from the switchboard
menu. I have already set the default veiw in the form propreties to
datasheet but the form still opens in form view.
 
A

Arvin Meyer

Jim V said:
I am having troble opening a from in datasheet view from the switchboard
menu. I have already set the default veiw in the form propreties to
datasheet but the form still opens in form view.

A single line of code should do it:

DoCmd.OpenForm "frmYourForm", acFormDS


acFormDS tells the form to open in datasheet view.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 
V

Van T. Dinh

If you are talking about the in-built Switchboard, open Form in
DatasheetView is not an option.

You need to use the RunCode command to run a code and the code is like what
Arvin posted.
 
G

Guest

I've done this before. You can set up a macro to open the form in datasheet
view. Then in the switchboard program the buttons so that it opens the macro
rather than the form.
 

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