Hans,
The sqlconnect() returns connection handle or statement handle depending on VFP version. You should store it into the form property when you get it.
>
>the connection is made using the sqlconnect() statement,which uses a connection defined in my vfp database. I need it because I want to write a line in a error log table in my slq database each time a form generates an error. I want to put the error handling in my baseform so I need to retrieve the handle that I made with my form (that is based on the baseform) to write the error line.
--sb--