How to hide option group

imdl

Registered User.
Local time
Today, 15:57
Joined
Feb 2, 2010
Messages
27
I got the code that enables an option group (opgOPCO) to pop-up whenever I input “0064” into the combo box (cboCCN). However, when I go to the next record (using record selector), the option group (opgOPCO) does not hide even though the combox box contains a value other than “0064.”
Dim bShow As Boolean
If Me.[cboCCN] = "0064" Then
bShow = True
Else
bShow = False
End If
If Me.[opgOPCO].Visible <> bShow Then
Me.[opgOPCO].Visible = bShow
End If

I need the option group (opgOPCO) to appear ONLY when the combo box (cboCCN) contains a specific value (0064). Can somebody help?
 
You need to either put the same code in the form's Current event or call the event you have this on from the Current event.
 
You've been such a huge help. Thanks and have a great day! :)
 

Users who are viewing this thread

Back
Top Bottom