Can't Open Form in Datasheet View with Command Button

F

Fred Worthington

Greetings:

I have set the default view of my form to Datasheet View, and that is the
way it appears when opened from the database window. However, when I open
the form from a Command Button, it always opens in Form View. How can I get
the form to open in Datasheet View from the Command Button. Any suggestions
would be greatly appreciated.

Thanks . . . Fred
 
R

Rick Brandt

Fred Worthington said:
Greetings:

I have set the default view of my form to Datasheet View, and that is the
way it appears when opened from the database window. However, when I open
the form from a Command Button, it always opens in Form View. How can I get
the form to open in Datasheet View from the Command Button. Any suggestions
would be greatly appreciated.

DoCmd.OpenForm "FormName", acFormDS
 

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