astarbyfar
Registered User.
- Local time
- Today, 15:35
- Joined
- Apr 27, 2003
- Messages
- 93
I previously produced a tick box in a form with the use of a Yes/No data type. However i wanted to produce code that display a number of objects if the the box is ticked. Hence I produced the following code
Private Sub Partsseperate6_AfterUpdate()
If Partsseperate6 = True Then
display objects
ElseIf
dont display objects
End If
End Sub
That worked fine. Now the company Im working for want a Yes or No value list i.e. in a combo box. When I swap True with Yes it no longer works. Ive tried using quotation marks and even Partsseperate.Value but they are not working. Has anyone any suggestions?
Private Sub Partsseperate6_AfterUpdate()
If Partsseperate6 = True Then
display objects
ElseIf
dont display objects
End If
End Sub
That worked fine. Now the company Im working for want a Yes or No value list i.e. in a combo box. When I swap True with Yes it no longer works. Ive tried using quotation marks and even Partsseperate.Value but they are not working. Has anyone any suggestions?