Hi everyone!
I have a from to enter new data in a table but i want to use validation rules to not to except blank records.
I tried this code:
if txtItem="" then
msgbox("Please fill the required fields")
else
code to insert new data
end if
It is not working. My form is accepting the blank records.
What is the correct code?
thank you
I have a from to enter new data in a table but i want to use validation rules to not to except blank records.
I tried this code:
if txtItem="" then
msgbox("Please fill the required fields")
else
code to insert new data
end if
It is not working. My form is accepting the blank records.
What is the correct code?
thank you