Well, the function is to be used as a new field in the query and therefore, give errors and values depending depending on the parameter field values . So, I don't think I could use the first method.
When your saying to test a text box to see if it is an error, what do you mean? How would that work?