Form will not open in data sheet view

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set up a button to open a form in datasheet view, and I have
datasheet set on the property table of the form. But when I try to use a
command button it opens in form view -

Any suggestions?
 
ksfireworksgal said:
I am trying to set up a button to open a form in datasheet view, and
I have datasheet set on the property table of the form. But when I
try to use a command button it opens in form view -

Any suggestions?

Regardless of what the form's default view is, your button's code must
explicitly tell the form to open in datasheet view. For example,

DoCmd.OpenForm "MyForm", acFormDS
 
Thank you it works.
--
Lynette


Dirk Goldgar said:
Regardless of what the form's default view is, your button's code must
explicitly tell the form to open in datasheet view. For example,

DoCmd.OpenForm "MyForm", acFormDS

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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

Back
Top