How do I Lock a field in a sub-form

P

pat c

I have a customer info input form and link to a subform. However, I would
like to lock a particular field in this subform and leave the rest of the
fileds in this subform unlock.
Anyone can help? Thanks a lot.

pat c
 
M

Morris

I have a customer info input form and link to a subform.  However, I would
like to lock a particular field in this subform and leave the rest of the
fileds in this subform unlock.  
Anyone can help?   Thanks a lot.

pat c

locked as in design_mode -> Properties of the form -> Data -> set
Locked to Yes?
 
K

Klatuu

If you want to lock a control in a subform from the parent form:

Me.SubFormControlName.Form.ControlName.Locked = True

SubFormControlName is the name of the subform control on the main form, not
the name of the form being used as the subform.
 
A

Al Campagna

Pat,
You don't say "when" you want to Lock the record... AfterUpdate perhaps.
Or, are your saying you want the field in one subform record Locked, but
that same field in other subform records editable?

Amswering your question just as you stated it... make the field...
Enabled = No and
Locked = Yes.
or just...
Locked = Yes
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 

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