rmh148
|
Thanks for looking at this. Usmallint is not a field name, it's the fields type/attribute. From the research that I have done, pervasive and Microsoft said that the problem appears when the ODBC trys to convert a btrieve field that has a type of "14 - unsigned binary" to an integer for Access. In the BKICMSTR there are two fields (BKIC_PROD_PMAT and BKIC_PROD_ADTR) that are defined as type "14 - Unsigned Binary" in the database. From the pervasive site, they indicate that these need to be changed to a "long" data type for the ODBC to work. In effect, the "usmallint or 14 - unsigned binary" type in the database can contain a value of 0 - 65535, and is stored as a 4 byte field. When the ODBC converts it it stores it as a 2 byte field that can accept a number from a -32768 to 32768. You indicated that you have no problem running against the BKICMSTR, which lead me to believe that the error message is worng. It may be that the file is locked or something like that. Maybe Lynn or someone can tell me how to see if a file is locked.
|