T
TA
Dear all experts,
I do not know what wrong in this piece of code but the
value is null. Please help. Thank you in advange!
Set Rs3 = db.OpenRecordset("dbo_mainerror2",dbOpenDynaset,
dbSeeChanges)
Set rs_cum = db.OpenRecordset _
("SELECT * FROM dbo_cum WHERE batch = '" & Me!Combo0
& "'", dbOpenDynaset, dbSeeChanges)
rs_cum.MoveFirst
tempID = (rs_cum.Fields![ident])
Do While Not rs_cum.EOF
Rs3.AddNew
rs_cum.MoveNext
If rs_cumhiv.Fields![ident] = (tempID) Then
Rs3!ident = tempID
Rs3!batch = rs_cum.Fields![batch].Value
' Move mouse over I see <No current record> !?
Rs3!code = "100"
rs_cum.MovePrevious
End If
Loop
I do not know what wrong in this piece of code but the
value is null. Please help. Thank you in advange!
Set Rs3 = db.OpenRecordset("dbo_mainerror2",dbOpenDynaset,
dbSeeChanges)
Set rs_cum = db.OpenRecordset _
("SELECT * FROM dbo_cum WHERE batch = '" & Me!Combo0
& "'", dbOpenDynaset, dbSeeChanges)
rs_cum.MoveFirst
tempID = (rs_cum.Fields![ident])
Do While Not rs_cum.EOF
Rs3.AddNew
rs_cum.MoveNext
If rs_cumhiv.Fields![ident] = (tempID) Then
Rs3!ident = tempID
Rs3!batch = rs_cum.Fields![batch].Value
' Move mouse over I see <No current record> !?
Rs3!code = "100"
rs_cum.MovePrevious
End If
Loop