Bad record number

The record number in a FileGet, FilePut, FileGetObject, or FilePutObject statement is less than or equal to zero.

To correct this error

  • Check the calculations used in generating the record number. Verify spelling of the variables containing the record number or used in calculating record numbers. A misspelled variable name is implicitly declared and initialized to zero, unless you used Option Explicit On in the module.

See Also


Option Explicit Statement (Visual Basic)