Change subform default view with VBA

J

JimN

Can the default view (single form or continuous form) of a
subform be changed with VBA? I have a POS form with a
subform and according to the use, selected in the form by
the user, the subform default view should change.
Thanks,
Jim N
 
M

MacDermott

I've been able to change between single form and datasheet view
successfully, but not between single and continuous.

HTH
- Turtle
 
N

Neil

Jim,

AFAIK, the default view can only be changed in design view. I think the only
way to change it would be to close the form, open in design view and hide
the form (using DoCmd.OpenForm), close the form again - change the default
view first and save the changes, then reopen the form again.

HTH,

Neil.
 
G

Guest

Thanks for your response,
Jim
-----Original Message-----
I've been able to change between single form and datasheet view
successfully, but not between single and continuous.

HTH
- Turtle




.
 

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