I am trying to move data from the AS/400 to an Access Database. Currently I am doing the following:
If Not (AS400_FMNOTE.BOF And AS400_FMNOTE.EOF) Then
AS400_FMNOTE.MoveFirst
Do While Not (AS400_FMNOTE.EOF)
PC_FMNOTE.AddNew
PC_FMNOTE("NEST#") = Trim$(AS400_FMNOTE("NEST#"))
PC_FMNOTE("NRORN") = Trim$(AS400_FMNOTE("NRORN"))
PC_FMNOTE("NSUFX") = Trim$(AS400_FMNOTE("NSUFX"))
PC_FMNOTE("NTEXT") = Trim$(AS400_FMNOTE("NTEXT"))
PC_FMNOTE.Update
AS400_FMNOTE.MoveNext
Loop
End If
AS400_FMNOTE = Recordset to the AS/400 Connection
PC_FMNOTE = Recordset to the Access DB Connection
If you are wondering about the Trim$ function, the AS/400 has formatted length fields, so I am getting rid of any extra spaces in each field.
Is there a faster/better way to move records then what I am doing?
If Not (AS400_FMNOTE.BOF And AS400_FMNOTE.EOF) Then
AS400_FMNOTE.MoveFirst
Do While Not (AS400_FMNOTE.EOF)
PC_FMNOTE.AddNew
PC_FMNOTE("NEST#") = Trim$(AS400_FMNOTE("NEST#"))
PC_FMNOTE("NRORN") = Trim$(AS400_FMNOTE("NRORN"))
PC_FMNOTE("NSUFX") = Trim$(AS400_FMNOTE("NSUFX"))
PC_FMNOTE("NTEXT") = Trim$(AS400_FMNOTE("NTEXT"))
PC_FMNOTE.Update
AS400_FMNOTE.MoveNext
Loop
End If
AS400_FMNOTE = Recordset to the AS/400 Connection
PC_FMNOTE = Recordset to the Access DB Connection
If you are wondering about the Trim$ function, the AS/400 has formatted length fields, so I am getting rid of any extra spaces in each field.
Is there a faster/better way to move records then what I am doing?