I am recieving an error 52 when i try to run my aplication. it is a simple application that prompts the user with an Input Box when it is fired up for the first time, meaning intCurrentRecNum = 0 I click Ok to get it going, that is when I recieve the error. After selecting Debug it takes me to the Put statement in the SaveRecordBuffer general procedure, I know this is a lengthy message but You must see the code and please tell where I am screwing up!Private Sub SaveRecordBuffer()
Dim i As Integer
With TBuffer
' .datDate = CDate(lblDate)
For i = 1 To 3
.lngProdShift(i) = Val(txtProdTons(i))
.lngRawMatsShift(i) = Val(txtOilCons(i))
If .lngProdShift(i) = 0 Then
lblRatio(i).Caption = "-"
Else
lblRatio(i).Caption = .lngRawMatsShift(i) / .lngProdShift(i)
End If
Next
End With
Put intFileNum, intCurrentRecNo, TBuffer
End Sub
Dim i As Integer
With TBuffer
' .datDate = CDate(lblDate)
For i = 1 To 3
.lngProdShift(i) = Val(txtProdTons(i))
.lngRawMatsShift(i) = Val(txtOilCons(i))
If .lngProdShift(i) = 0 Then
lblRatio(i).Caption = "-"
Else
lblRatio(i).Caption = .lngRawMatsShift(i) / .lngProdShift(i)
End If
Next
End With
Put intFileNum, intCurrentRecNo, TBuffer
End Sub