Datasheet Form

G

Guest

I have created a datasheet form. When I open the form from the Database
Window the form opens in a datasheet view.

I have a button that opens the same form but when clicked the form opens in
a single form view.

The default view is set to Datasheet.

Is there a way to get the form to open in datasheet view when clicking the
button.

Thanks for the help,

Paul
 
G

Guest

Is the button on a form or on the switchboard?
What is the code in the button's Click event?
 
F

fredg

I have created a datasheet form. When I open the form from the Database
Window the form opens in a datasheet view.

I have a button that opens the same form but when clicked the form opens in
a single form view.

The default view is set to Datasheet.

Is there a way to get the form to open in datasheet view when clicking the
button.

Thanks for the help,

Paul

Regardless of the form's Default View setting, to open a form in
datasheet view using code you MUST specify datasheet view:

DoCmd.OpenForm "FormName", acFormDS
 
G

Guest

Setting the form to open as asFormDS solved my problem.

Thanks for the help again,

Paul
 

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