R
Rafi
I am using a form to record check payments and would like to view the invoice
amount while I am entering the payment. Since a single payment can be
applied to multiple invoices I need help with the following DLookup
Dim strFilter As String
' Evaluate filter before it's passed to DLookup function.
strFilter = "InvoiceID = " & Me!InvoiceID
' Look up Invoice's Amount price and assign it to InvoiceAmount control.
Me!InvoiceAmount = DLookup("Expr1", "QryHours", strFilter)
When I enter the InvoiceID the first time the InvoiceAmount field is updated
with the correct value. However, when I enter the second, or third,
InvoiceID the previous values assigned to InvoiceAmount change to reflect the
value ofthe most recently entered InvoiceID. How can I prevent this from
happening? I would like to be able to display multiple lines each with a
unique InvoiceID and its corresponding and unique InvoiceAmount
Thanks
amount while I am entering the payment. Since a single payment can be
applied to multiple invoices I need help with the following DLookup
Dim strFilter As String
' Evaluate filter before it's passed to DLookup function.
strFilter = "InvoiceID = " & Me!InvoiceID
' Look up Invoice's Amount price and assign it to InvoiceAmount control.
Me!InvoiceAmount = DLookup("Expr1", "QryHours", strFilter)
When I enter the InvoiceID the first time the InvoiceAmount field is updated
with the correct value. However, when I enter the second, or third,
InvoiceID the previous values assigned to InvoiceAmount change to reflect the
value ofthe most recently entered InvoiceID. How can I prevent this from
happening? I would like to be able to display multiple lines each with a
unique InvoiceID and its corresponding and unique InvoiceAmount
Thanks