Check into AERROR()
Richard
>Is there any way to get an error message back from SQLECEC().
>
>I just get back -1 and that means connection level error, but I know the connection handle is good.
>
>Obviously some of the parameters I am passing are wrong or my syntax wrong, but I do not know anything other than -1
State of Florida, DCF