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


--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
 

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