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?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.