Hi to all:
I need to exit a form in some situation like:
VB Code:
If var <> 1 Then MsgBox "Atenção:O Ano Selecionado Não existe na Base de Dados" Exit Sub End If
but the "Exit Sub" don't work like desired,because the code continue to work,in the form ....
well... I need to exit the form...
Some help to do this?
Thanks




Reply With Quote