M
mattc66 via AccessMonster.com
When I run the below code. I get a message at the ELSE that says there is no
IF. But there is an IF.
Any ideas why this is saying that?
If rs!Item = rs1!Item Then 'are they the same?
rs.MoveFirst
With rs
Do While Not rs.EOF
rs.Edit
rs![ListPrice] = Nz(rs1![ListPrice], "")
rs![AvgCost] = Nz(rs1![Avg_Cost], "")
rs![AR_CODE] = Nz(rs1![AR_CODE], "")
rs.Update
rs.MoveNext
'rs1.MoveNext
Else
rs1.MoveNext 'if not move to next record for rs1
End If
Loop
End With
IF. But there is an IF.
Any ideas why this is saying that?
If rs!Item = rs1!Item Then 'are they the same?
rs.MoveFirst
With rs
Do While Not rs.EOF
rs.Edit
rs![ListPrice] = Nz(rs1![ListPrice], "")
rs![AvgCost] = Nz(rs1![Avg_Cost], "")
rs![AR_CODE] = Nz(rs1![AR_CODE], "")
rs.Update
rs.MoveNext
'rs1.MoveNext
Else
rs1.MoveNext 'if not move to next record for rs1
End If
Loop
End With