Hi,

maybe somebody of you can assist me with my attempt to have a working veto function for dataset changes in a form. In case a certain entry in a form doesn't match a correct value I want to intercept the user from switching to next dataset. I found a script from Frank Schönheit which doesn't work but I don't know what is wrong with it:

Function approve( Source as Object ) as Boolean
If ( val( Source.Source.Text ) > 10 ) Or ( val( Source.Source.Text ) < 1 ) Then
                MsgBox "too large!"
                approve = FALSE
        End If
        approve = TRUE
End Function

You can download the corresponding document here:
http://kraak.info/biblio1.sxw

Thank in advance!

Helge

--
Helge Kraak
Frauenlobstr. 78a
60487 Frankfurt am Main
Germany

Mobil:     +49 (0)178 828 80 90
Telefon:   +49 (0)69 979 466 23
Fax:       +49 (0)69 133 046 094 11
Internet:  www.helge.kraak.info
ICQ:       348131950

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to