>I'm using VFP6 sp3 with SQL server for the database
>Is it possible that when I call a sqlexec() command and it return -1, that I can request the sqlerror that occurred?
>
>Thanks
>Kirk
Yes, take a look at the AERROR() function in VFP. Also, a good source of information on debugging VFP/SQL Server applications is the book:
Client/Server Applications with Visual FoxPro and SQL Server from Hentzenwerke.
Chris McCandless
Red Sky Software