G
Guest
The code below resides in a loop. It works fine, for the first record, but
none of the others. The 'Findfirst' line searches for the proper ItemID,
however, it continues to attempt to update the first record of the table.
Any suggestions on what I'm doing wrong?
Thanks, in advance.
Sharkbyte
Dim MyDB As Database
Dim MyDetail As Recordset
Set MyDB = CurrentDb()
Set MyDetail = MyDB.OpenRecordset("tblpurchaseorderdetails")
..MoveFirst
..FindFirst ("itemid = '" & gblItemID & "' ")
With MyDetail
.Edit
!ItemStatus = "Received"
!QuantityReceived = !QuantityOrdered
.Update
End With
none of the others. The 'Findfirst' line searches for the proper ItemID,
however, it continues to attempt to update the first record of the table.
Any suggestions on what I'm doing wrong?
Thanks, in advance.
Sharkbyte
Dim MyDB As Database
Dim MyDetail As Recordset
Set MyDB = CurrentDb()
Set MyDetail = MyDB.OpenRecordset("tblpurchaseorderdetails")
..MoveFirst
..FindFirst ("itemid = '" & gblItemID & "' ")
With MyDetail
.Edit
!ItemStatus = "Received"
!QuantityReceived = !QuantityOrdered
.Update
End With

