Changing form views

R

Reid Kell

I'm having trouble switching from Form view to Datasheet view via code. The
form opens by default to form view, but the user may want to view as
datasheet. However, everything I try (including
RunCommand acCmdDatasheetView) results in the following:

Run-time error '2174': You can't switch to a different view at this time.

The only thing that works is closing the form and opening in datasheet view,
but this is not acceptable. Any ideas? Thanks.
 

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