ok what is weird about this is that based on output my code SEEMS to be working corectly...but based on testing i am not so sure here is the code:<BR><BR>Function goodData(obj, param)<BR> on error resume next<BR> err.clear()&#039;reset error object<BR> <BR> dim back<BR> back=obj.Fields.Item(param).Value<BR> Response.Write(some informative stuff)<BR> if(err.Number &#060;&#062; 0) then<BR> Response.Write(some error stuff)<BR> back = 0<BR> end if<BR> goodData=back<BR> err.clear() <BR>end function<BR><BR>OK what is weird here is that i get the first response.write always and the info it gives me is the current return value and the error number. The weird part hapens when that number is not 0 in other words i have an error. The program seems to handle things ok here because my data output is valid. But that secound response.write never shows up instead i get the first one a secound time. <BR><BR>Can anyone figure out what in the world is going on?<BR><BR>Thanks<BR>Andrew