AVISO PARA CAMPO INCOMPLETO
Por favor, quero saber como faço para quando incluir registro em DAO no banco de dados apareça uma mensagem dizendo que o textbox está incompleto ou vazio se for o caso...
Agradeço a atenção de todos
Agradeço a atenção de todos
if text.text = "" them msgbox "campo cliente é de preenchimento obrigatório"
if len text.text < 10 then msgbox "campo cliente deve ter 10 caracteres"
if len text.text < 10 then msgbox "campo cliente deve ter 10 caracteres"
Se verificar antes :
REPETE:
If txtTEXTO.text = VbNullstring or IsNull (txtTEXTO.text) then
MsgBox "Preecha"
txtTEXTO.SetFocus
Goto REPETE
REPETE:
If txtTEXTO.text = VbNullstring or IsNull (txtTEXTO.text) then
MsgBox "Preecha"
txtTEXTO.SetFocus
Goto REPETE
se usar o repete: ele vai cair em um loop e nao vai mais sair
Tópico encerrado , respostas não são mais permitidas