B
Bob Vance
On my form if Combo box [cbOwner]is Null my SubForm Not Show
[SubPayModePayChild]
Can I have this in My Open Form event?
[SubPayModePayChild]
Can I have this in My Open Form event?
On my form if Combo box [cbOwner]is Null my SubForm Not Show
[SubPayModePayChild]
Can I have this in My Open Form event?
John W. Vinson said:On my form if Combo box [cbOwner]is Null my SubForm Not Show
[SubPayModePayChild]
Can I have this in My Open Form event?
Not sure what you mean here. Do you want the subform to be invisible if
the
combo box value is NULL? What if it's NULL in one record, and non-Null in
some
other record?
Try putting code in the form's Current event:
Private Sub Form_Current()
Me.SupPayModePayChild.Visible = Not IsNull(Me!cbOwner)
End Sub
Bob Vance said:Thanks John could not get that to work, but wrote this and it seems to
work:
Created a check box that is true when cbOwner has data ....Regards Bob
If ckbClient.value = 0 Or IsNull(ckbClient.value) Then
ckbClient.value = -1
Me.Refresh
If ckbClient.value = True Then
SubPayModePayChild.Visible = True
Else
SubPayModePayChild.Visible = False
End If
John W. Vinson said:On my form if Combo box [cbOwner]is Null my SubForm Not Show
[SubPayModePayChild]
Can I have this in My Open Form event?
Not sure what you mean here. Do you want the subform to be invisible if
the
combo box value is NULL? What if it's NULL in one record, and non-Null in
some
other record?
Try putting code in the form's Current event:
Private Sub Form_Current()
Me.SupPayModePayChild.Visible = Not IsNull(Me!cbOwner)
End Sub
Bob Vance said:Entered same code on AfterUpdate in combobox and on Open in The form event
Regards Bob
Bob Vance said:Thanks John could not get that to work, but wrote this and it seems to
work:
Created a check box that is true when cbOwner has data ....Regards Bob
If ckbClient.value = 0 Or IsNull(ckbClient.value) Then
ckbClient.value = -1
Me.Refresh
If ckbClient.value = True Then
SubPayModePayChild.Visible = True
Else
SubPayModePayChild.Visible = False
End If
John W. Vinson said:On my form if Combo box [cbOwner]is Null my SubForm Not Show
[SubPayModePayChild]
Can I have this in My Open Form event?
Not sure what you mean here. Do you want the subform to be invisible if
the
combo box value is NULL? What if it's NULL in one record, and non-Null
in some
other record?
Try putting code in the form's Current event:
Private Sub Form_Current()
Me.SupPayModePayChild.Visible = Not IsNull(Me!cbOwner)
End Sub