acNormal

  • Thread starter Thread starter Pass-the-Reality
  • Start date Start date
P

Pass-the-Reality

On a command button I have added the below visual basics code. This allows
me to open a form. However, I want to update the below code to indicate that
the form should open in Read Only. If I change acNormal to acPreview that
will allow the form to be open in snap shot, but then I can not use the
scroll bars to view additional text in certain boxes. Can I update the below
VB to indicate Read Only?


DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
 
Pass-the-Reality said:
On a command button I have added the below visual basics code. This
allows
me to open a form. However, I want to update the below code to indicate
that
the form should open in Read Only. If I change acNormal to acPreview that
will allow the form to be open in snap shot, but then I can not use the
scroll bars to view additional text in certain boxes. Can I update the
below
VB to indicate Read Only?


DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria


Try this:

DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria, acFormReadOnly

You could, of course, have found this out by looking up OpenForm in the
online help.
 

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

Back
Top