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.
 
Top