data validation in form

GS1

Registered User.
Local time
Today, 02:14
Joined
Jul 3, 2002
Messages
30
i have an IIF statement that runs to check the contents of a form before it is updated.

I was wondering if it is possible to check if no field on the form has a value? Basically, i want to add to my IIF statemnt so that a user doesn't get trapped by my validation rules firing if they have accidently created a new record and just want to get rid of it...

Thanks

G

:)
 
if nz(me.dirty)=false then
-no data has changed
end if
 
I presume your code is running in the form's BeforeUpdate event. You should not end up in there if the user has not changed any fields. It is only executed if the form is dirty. If you have a situation where you are ending up there it may be because you have written some code that is dirtying the form.
 
Yes, it's on the form's BeforeUpdate event.
 

Users who are viewing this thread

Back
Top Bottom