1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
Dim FILENOVal As Integer FILENOVal = PadValue(Val(Len(adoRst("FILENO")))) Public Function PadValue(ByVal len As Integer) As String Dim ReturnValue As String Dim lenVal As Integer Dim i As Integer ReturnValue = "" i = 1 lenVal = 5 - len If len <> 5 Then For i = 1 To lenVal ReturnValue &= "0" Next End If PadValue = ReturnValue End Function