G
Guest
The Error:
"No Current Record"
The Code:
For Each fldTrail In rsTrail.Fields <== the error
If IsNull(fldTrail.Value) Then
work1 = work1 & sizestr(fldTrail.Value, fldTrail.Size)
Else
If fldTrail.Type = dbDate Then
work1 = work1 & sizedate(fldTrail.Value, DateType)
Else
work1 = work1 & sizestr(fldTrail.Value, fldTrail.Size)
End If
End If
Next fldTrail
Details:
This code gives the above error about 1 of 4 times it is run avg.
What condition will cause the error "No Current Record"?
I can run the CDSN clearance button right now and get an error.
I can run it a again and it will NOT give an error. ?!?!?!?!?!!!!!!
I have to cut out the error.
Scott Burke
"No Current Record"
The Code:
For Each fldTrail In rsTrail.Fields <== the error
If IsNull(fldTrail.Value) Then
work1 = work1 & sizestr(fldTrail.Value, fldTrail.Size)
Else
If fldTrail.Type = dbDate Then
work1 = work1 & sizedate(fldTrail.Value, DateType)
Else
work1 = work1 & sizestr(fldTrail.Value, fldTrail.Size)
End If
End If
Next fldTrail
Details:
This code gives the above error about 1 of 4 times it is run avg.
What condition will cause the error "No Current Record"?
I can run the CDSN clearance button right now and get an error.
I can run it a again and it will NOT give an error. ?!?!?!?!?!!!!!!
I have to cut out the error.
Scott Burke