Error handling

dear friends,

i have a form named “frmA” with field “uploaddate” type “date/time”.

instead of that i have a view named “viewA” with co1loum property “Date/time”.

in “inviewedit” event,

Case VALIDATE_REQUEST :

If Colprogname(0) = “uploaddate” Then

If Isdate(Fulltrim(Columnvalue(0)))=False

 then

msgbox “You type a wrong message”

Continue = False

End If

End If

after i coding it in “inviewedit”, every time i type a wrong error ex “aaa” it always appear

msgbox “You type a wrong message”. after that msgbox “error validating column value”.

my trouble is i only want it appear msgbox “You type a wrong message”

thanx for answering my question

Subject: error handling

It sounds like the error is one of validation. ie. Notes is aware that a date should be entered and is therefore advising that the entered value is not a date, however this is something you have already done via the inviewedit event.

Perhaps if you force the user to insert a valid date value then the system won’t advise of an incorrect column value.

i.e.

dim newDate as string

If Isdate(Fulltrim(Columnvalue(0)))=False Then

newDate = Columnvalue(0)

While Not Isdate(newDate )

newDate = Inputbox(“Enter a valid Date”,“Invalid date entered”)

Wend

Columnvalue(0) = Cdat(newDate)

End If

Subject: RE: error handling

Notes does not care whether the datatype of the value assigned by inviewedit matches the datatype on the form.

I wonder whether there’s some other code after the one shown in the original post that might be causing an error condition.