Controlling an object on a subform

ingridx

Registered User.
Local time
Today, 01:27
Joined
Oct 7, 2001
Messages
14
Dear Access users,

Can someone give me code to for example disabling a textbox on a subform?
I tried:
Forms![formName]![subformName].TxtName.Edit = False
Forms![subformName].TxtName.Edit = False

These two rows don't work!

Thanks a lot for reading / answering this question.

Ingrid.
 
Or you could try:

Forms!FormName!subFormName.Form!txtName.Enabled = False
 

Users who are viewing this thread

Back
Top Bottom