open form in datasheet view

H

Heather

I have the default view set to datasheet and the following
on_open command:

DoCmd.OpenForm "yourForm", acFormDS

I get a run time error "you can't switch to a different
view at this time."

any suggestions?
 
A

Ashby

Your problem is confusing. If you already have the
default view set to datasheet, why are you trying to open
the form in datasheet view. This is very redundant. My
advise---lose the code.
 

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