Datasheet-view form opens as single view

M

Mishanya

I have a button on the SwitchBoard wich opens MyForm with code:

DoCmd.OpenForm "MyForm"

MyForm has datasheet-view. But when opened from the button, it appears in
single-view.

Is the button code responsible or somethig else?
 
R

ruralguy via AccessMonster.com

Try: DoCmd.OpenForm "MyForm", acFormDS

...the default is Single Form View and overides the settings in the form.
 
M

Mishanya

it'll do
Thaks a lot!

ruralguy via AccessMonster.com said:
Try: DoCmd.OpenForm "MyForm", acFormDS

...the default is Single Form View and overides the settings in 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