Why cann't I get the code to understand that if the field is empty the value is "Null"? The format is number and the default value is null. The user have to enter a number. I want a messagebox message if the value is Null (or if you want the box is empty).
My code is
if me!codeId.value=Null then
msgbox("You have to enter a number")
me.codeId.setfocus
else
end if
Why doesn't it work?
I have tried
if me!codeId=Null
if me!codeId=0
if me!codeId=""
I think I have tried everything,but I don't get it to work.
Gunilla
My code is
if me!codeId.value=Null then
msgbox("You have to enter a number")
me.codeId.setfocus
else
end if
Why doesn't it work?
I have tried
if me!codeId=Null
if me!codeId=0
if me!codeId=""
I think I have tried everything,but I don't get it to work.
Gunilla