lock controls all in one go

N

Newbie

Hi

I have a form that I want to use for date enquiry as well as data entry.

When the user just wants to enquire I want to be able to lock all the
controls so that no changes can be made.

How can I do this?

There must be an easier way than a line of code for each control
 
C

Cheryl Fischer

Take a look at the form's Data properties:

You could set the AllowEdits, AllowAdditions, and AllowDeletions properties
to false:

Me.AllowEdits = false 'etc.

Or, you could change the RecordSet Type to Snapshot.
 

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