I've seen documentation describing the problems getting the number of records from a b_stat command with Visual Basic. The solution suggests defining the field as a string and convert it to a long. I can't get this to work. If anyone has done this and could provide sample code it would be much appreciated.