View Full Version : Controlling an object on a subform


ingridx
02-12-2002, 10:34 PM
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.

Rich
02-13-2002, 04:07 AM
Me.TxtName.AllowEdits = False

Robert Dunstan
02-13-2002, 04:22 AM
Or you could try:

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