i am running into problems with is the recordset. i have exactly 104
records. when i tested the code, the end result was multiple records
for the same loan(ET LN Shortname). where did i go wrong? so i tried
a couple of different do... loop statements and ended up getting the
same results, that is having multiple records of the same loan(ET LN
Shortname). so if anyone has any suggestions, it would be appreciated
:) thanks in advance and all who gave me advice. jung
Set db = DBEngine(0)(0)
Set rst = db.OpenRecordset("ETracking")
''If rst.RecordCount > 0 Then
''Do While Not rst.EOF
Do Until rst.EOF
db.Execute " INSERT INTO ETracking([ET Number], [ET LN
Shortname], [ET Amount], [ET EC Code])" _
& " SELECT(SELECT(Max([ET Number])+1) FROM ETracking),
tblImportET.[ET LN Shortname], tblImportET.[ET Amount],
tblImportET.[ET EC Code] FROM [tblImportET]; "
rst.MoveNext
Loop
Set rst = Nothing
Set tdf = Nothing
Set db = Nothing
'End If