How is your KeyBuffer declared? It probably should be a User Defined Type like:
strField as string * 15
intField as integer
Integers aren't stored as strings (or ASCII characters) in a Btrieve file, they are stored as byte swapped Intel integers.
You can also turn on the MKDE tracing to see exactly what's being sent on the Get Equal.
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.