F
forcefield via AccessMonster.com
Hi,
I have a main form with 3 subforms. The main form opens with 2nd and 3rd
subforms hidden. The main form height was initially adjusted to accommodate
1st subform only
There is no problem with this.
Private Sub Form_Open(Cancel As Integer)
InsideHeight = 5000 'set the height of main form on opening
InsideWidth = 13700
Blah Blah
End Sub
When I click a particular field txtPhyQty ( > 0) in a first subform, I want
the main form’s height to extend automatically so as to accommodate the 2nd
and 3rd subforms. Nothing happens here.
Private Sub txtPhyQty_GotFocus()
If Nz(Me.txtPhyQty) > 0 Then
InsideHeight = 9400 'set the height of main form <- - fail
InsideWidth = 13700 ' set width of main form
Blah Blah
End if
End sub
Does anyone know how to solve this problem?
Thank you
I have a main form with 3 subforms. The main form opens with 2nd and 3rd
subforms hidden. The main form height was initially adjusted to accommodate
1st subform only
There is no problem with this.
Private Sub Form_Open(Cancel As Integer)
InsideHeight = 5000 'set the height of main form on opening
InsideWidth = 13700
Blah Blah
End Sub
When I click a particular field txtPhyQty ( > 0) in a first subform, I want
the main form’s height to extend automatically so as to accommodate the 2nd
and 3rd subforms. Nothing happens here.
Private Sub txtPhyQty_GotFocus()
If Nz(Me.txtPhyQty) > 0 Then
InsideHeight = 9400 'set the height of main form <- - fail
InsideWidth = 13700 ' set width of main form
Blah Blah
End if
End sub
Does anyone know how to solve this problem?
Thank you