Datasheet View

S

Sash

I created a form in datasheet view. However, when I open this form from some
VB code on another form, it opens as a regular form.

Dim stFormPT as string
stFormPT = "ErrorPT"
Docmd.OpenForm stFormPT
 
L

Linq Adams via AccessMonster.com

As bcap and Steve have shown, when opening a form in Datasheet view from
another form, you have to explicitly open it in Datasheet view, regardless of
how the default view is set for the form on its own. BTW, both syntaxes given
are correct.
 

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