item.Add "Quantity", Forms!frmCustomerInvoice![sfrmLineDetails Subform].Form.Quantity & "AND ItemesID =" & CStr(i)
ASKER
Dim Rst As DAO.Recordset
Set Rst = Forms!frmCustomerInvoice![sfrmLineDetails Subform]
Rst.MoveFirst
Do While Not Rst.EOF()
With Rst
Me.Quantity
.MoveNext
End With
Loop
Exit Sub
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
But as it stands, I don't see anything wrong with what your doing other than you need a space in front of the AND:
Open in new window
Also looks like you mis-spelled "ItemesID". Think it should be "ItemsID"
What kind of error are you getting?
and just to be clear, you are not using an array.
Jim.