Validation rules (1 Viewer)

Aleni

Registered User.
Local time
Today, 13:34
Joined
Dec 6, 2012
Messages
45
I have a form to enter new records in a table.
But when user enter empty record i want to display a validation text to to fill the required.

I tried this code.

If txtItems="" then
msgbox("please fill the required fields")
else
code to insert the records.
end if

with this code its accepting the blank record also.
What is the correct code?
thank you...
 
If txtItems & "" ="" then

Note that "empty" is not equal to "". Your "txtItems" is probably "empty."
 

Users who are viewing this thread

Back
Top Bottom