How to make the option group link with the textbox??

M

miles

hi

i need some guides

i want to link the check box with the textbox

example

- CIF
txtboxCIF

- FOB
txtboxFOB

when i click CIF only the txtboxCIF will appear
but when i click FOB only the txtboxFOB will appear.


i got the code but cannot link how??

Private Sub Option143_Click()
If Option143.Enabled = True Then
CIF.Visible = False
End If
End Sub

Private Sub Option145_Click()
If Option145.Enabled = True Then
FOB.Visible = False
End If
End Sub

how to use this code in the form ??? where should i place this code
i type it in the visual basic but nothing happen........

wat should
do.........................................................................
 
Top