Open form in datasheet view

G

Guest

Quick question;

I have a form (#1). I made a button on form #1 which, when clicked, will
open another form (#2). Form #2 is supposed to open in datasheet view. It
does, when I click directly on the form. However, when I click on the button
in form #1, form #2 opens in a form view. How do I make it open in a
datasheet view?

Casa
 
D

Douglas J Steele

DoCmd.OpenForm "NameOfForm", acFormDS

The default view with the OpenForm method is acNormal, which will override
the form's settings.
 
G

Guest

Thanks for the help. It worked!

Douglas J Steele said:
DoCmd.OpenForm "NameOfForm", acFormDS

The default view with the OpenForm method is acNormal, which will override
the form's settings.
 

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