What do you mean on "the structure of orders file" ?
The orders file has records built with the Open statements with Random mode according to the next record structure:

Type Orders
OrderNo As Double
OrdDate As Date
item As String * 9
OrdQty As Double
OrdPrice As Double
ReqDelDate As Date
ConfDelDate As Date
Over As Boolean
End Type


It is interesting that writing to the file at the very beginning works well. The error occurs when opening the file again either for writing or for reading.