Originally posted by Rob Bartram
Steve,
I just had a similar need. To cancel the popup in the onPopup event, I just set the .picklistname.name = "". This completely suppresses the popup. This works on SLX 6.2.6, I'm not sure about other versions.
One note though is that you have to set the picklistname at the beginning of the onPopup event or else the next time the user clicks the popup button, after the picklist has been cleared, nothing will be shown.
For example Sub pklStatusPopup(Sender)
pklStatus.PickListName.Name = "Account Status"
'Do some evaluation and if required clear the picklist name to suppress the popup
pklStatus.PickListName.Name = ""
End Sub
|