I know this is probably simple, but I can seem to get it to work right.
The user scanns a barcode into a text box. I need a message box to appear if the number of characters in the text box is less then 15 characters (ie. 8888 instead of 888888888888888). Here is my code. I can't see what is wrong.
(my text box)_AfterUpdate
if me.mytextbox <> "***************" then
bytYesNo = msgbox ("BlaBlaBla", vbYesNo, "Bla Bla")
if bytYesNo = vbYes then
Do this
else
do this
end if
else
do this
end if
end sub
Thanks in advance
The user scanns a barcode into a text box. I need a message box to appear if the number of characters in the text box is less then 15 characters (ie. 8888 instead of 888888888888888). Here is my code. I can't see what is wrong.
(my text box)_AfterUpdate
if me.mytextbox <> "***************" then
bytYesNo = msgbox ("BlaBlaBla", vbYesNo, "Bla Bla")
if bytYesNo = vbYes then
Do this
else
do this
end if
else
do this
end if
end sub
Thanks in advance