Form is Datasheet but opens single record mode?

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I have a slew of forms that I created with the Form Wizard - all are
datasheet mode. If I open them direct from the Database Window, they
open as datasheets. But, when I use a button on another form to open
them (created from the toolbox command button tool) they open in
"single record" mode. I've checked several times and they are fine
when opened directly, it's just then they are opened from the button
that they don't work.

How can I get them to open as datasheets ?

Thanks,
 
By default, DoCmd.OpenForm always opens forms in Single Record mode.

Rather than

DoCmd.OpenForm "MyForm"

use

DoCmd.OpenForm "MyForm", acFormDS
 

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