Help with a DLookUp

B

Bob V

Haven't got this just right cant be that far away, need some HELP!
Thanks for any help....Bob
="Last Payment"
+DLookUp("BillDate"+"PaidAmount","qryAccountStatus","OwnerID=" &
[tbOwnerID])
 
D

Douglas J. Steele

If you're trying to return both the BillDate and PaidAmount in a single
lookup, use

="Last Payment"
+DLookUp("[BillDate] & ' ' & [PaidAmount]","qryAccountStatus","OwnerID="
&[tbOwnerID])
 
B

Bob V

Thanks Douglas, Is there a way to format them ie: BillDate d-mmm-yy &
AmountPaid($#,##0.00)
Thanks for your help.....Bob
Douglas J. Steele said:
If you're trying to return both the BillDate and PaidAmount in a single
lookup, use

="Last Payment"
+DLookUp("[BillDate] & ' ' & [PaidAmount]","qryAccountStatus","OwnerID="
&[tbOwnerID])

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
Haven't got this just right cant be that far away, need some HELP!
Thanks for any help....Bob
="Last Payment"
+DLookUp("BillDate"+"PaidAmount","qryAccountStatus","OwnerID=" &
[tbOwnerID])
 
D

Douglas J. Steele

I think you'll need to use two DLookups:

="Last Payment" & Format(DLookUp("[BillDate]","qryAccountStatus","OwnerID="
&[tbOwnerID]), "d-mmm-yy") & " " &
Format(DLookUp("[PaidAmount]","qryAccountStatus","OwnerID=" &[tbOwnerID]),
"$#,##0.00")


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
Thanks Douglas, Is there a way to format them ie: BillDate d-mmm-yy &
AmountPaid($#,##0.00)
Thanks for your help.....Bob
Douglas J. Steele said:
If you're trying to return both the BillDate and PaidAmount in a single
lookup, use

="Last Payment"
+DLookUp("[BillDate] & ' ' & [PaidAmount]","qryAccountStatus","OwnerID="
&[tbOwnerID])

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
Haven't got this just right cant be that far away, need some HELP!
Thanks for any help....Bob
="Last Payment"
+DLookUp("BillDate"+"PaidAmount","qryAccountStatus","OwnerID=" &
[tbOwnerID])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top