Problems with a tab control

S

Sabram

Hi
I have a problem with a tab control on a form. What I am trying to acheive
is that when a combo box on page 1 has the text "Data Protection" then two
text boxes on page 3, which are set to not visible in the properties boxes,
become visible. The attempt shown below does nothing!


Private Sub Cbo_RequestType_Exit(Cancel As Integer)

If Me.cbo_RequestType = "Data Protection" Then
Forms!frm_request.Page3.DP_IdentificationRqst.Visible = True
Forms!frm_request.Page3.DP_IdentificationProduced.Visible = True
End If

End Sub

Help anyone?

Thanks

Steve
 
R

Rick Brandt

Sabram said:
Hi
I have a problem with a tab control on a form. What I am trying to acheive
is that when a combo box on page 1 has the text "Data Protection" then two
text boxes on page 3, which are set to not visible in the properties boxes,
become visible. The attempt shown below does nothing!


Private Sub Cbo_RequestType_Exit(Cancel As Integer)

If Me.cbo_RequestType = "Data Protection" Then
Forms!frm_request.Page3.DP_IdentificationRqst.Visible = True
Forms!frm_request.Page3.DP_IdentificationProduced.Visible = True
End If

End Sub

Are you sure the value of the Combo is what you think it is? Does it have
multiple columns where the displayed value is not the same as the bound
value?
 

Ask a Question

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.

Ask a Question

Top