Open Form in Add Mode

G

Guest

I have form that is designed to open in DataSheet Format.. When I open the
form normally it works perfectlhy.

When I open it from switchboard open form in add mode it open in form
view...

What am I doing wrong..

Many thanks

Bob
 
R

Rick Brandt

Bob said:
I have form that is designed to open in DataSheet Format.. When I
open the form normally it works perfectlhy.

When I open it from switchboard open form in add mode it open in form
view...

What am I doing wrong..

Even when it is the default view for a form datasheet view has to be explicitly
specified in your OpenForm method.

DoCmd.OpenForm "FormName", acFormDS, , , acFormAdd
 
R

Rick Brandt

Bob said:
Thanks rick but where do I put this line in the switch board setup..

Thanks Bob

I suppose you would have to create a function and then use the Run Code option.
Sorry, but I never use the Switchboard Manager (often described by Larry Linson
as a complex solution to a simple problem).

I just use my own unbound forms with buttons and/or hyperlinks on them as that
is much more flexible and powerful.
 

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