unbound textbox in subform not allowing input

B

Bruce Pearson

I have an unbound textbox that will not allow input entry when the form is open as a subform

What's up with this

Thanks
B
 
M

Michel Walsh

Hi,


I would try, in the Load event, to lock (or disable) the text controls
if the form has a parent:

Dim IsUseAsSubFom As Boolean

On Error Resume Next
Me.Parent
IsUseAsSubFom = CBool( 0=Er.Number)

Me.Control1.Locked= IsUseAsSubFom
Me.Control2.Locked= IsUseAsSubFom


Hoping it may help,
Vanderghast, Access MVP
 
Top