Before you call SQLConnect turn off the display of ODBC error messages
SQLSETPROP(0,'DispWarnings',.F.)
>Dear friends,
>I want to use VFP 6.0 to connect to SQL Server 7.0 backend database. SQLConnect() function does the job and returns the connection handle if connect is successful. The problem is that if the connection cannot be made and the function returns error (-1), an ODBC error message is automatically displayed.
>
>Can you tell me how to suppress this message? Setting on error / notify etc does not work.
>
>Anil
--sb--