Switching Continuous to Single-Record view

D

Dave Alger

Hi all,

I have a subform displaying records in Continuous view. I'd like to be able
to change it programatically to show a single-record view (and vice versa).

Is this possible? I thought the CurrentView might be an answer, but that's
read-only at runtime.

Thanks in advance for any help you can offer.

regards,
Dave
 
V

Van T. Dinh

I am not sure about changing from the CtsFormView to NormalFormView but you
can switch the Subform from DatasheetView to FormView using:

DoCmd.RunCommand acCmdSubformFormView

(The Subform needs to have the Focus when the above statement is executed.)
 

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