The problem with the status 20 or the status 802 is most likely that the Btrieve ODBC thinks you've installed the server engine and can't find it. Look for a "Target Engine" setting in the HKEY_LOCAL_Machine\Software\Btrieve Technologies or HKEY_LOCAL_MACHINE\Software\Pervasive Software registry keys. The Target Engine will depend on the engine location and the data location.
If everything is local (Btrieve engine, ODBC Driver, data) and you're using the WOrkstation engine, then the Target Engine should be 0 (zero) for all entries.
Unless you're using a client server version of Btrieve or Scalable SQL, that should work. If you are using a client server Btrieve engine and you're at the server, then set the Btrieve Target Engine to 1. Set the Scalable SQL Target Engine to 0 unless you're using Scalable SQL Server engine on the same machine as the ODBC. info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician