I have a query that searches for all line items before a certain date. I use that in a report that is grouped by invoice number. I then use an unbound field and dsum to add up the values for a particular code. This all works fine for my users.
However, my users want to also see the customer associated with that invoice. The problem is that these are third party invoices and some is paid by my company and some by my customer. If I use dlookup it will only give me , i believe the first one. Sometimes the customer will be the first line item and sometimes my company will be.
I need a way to look up the name other than my company UNLESS my company is the only name on that invoice.
Is this possible with a dlookup or will i need to rebuild this whole report some other way?