Please don't over think this one. Assume that I understand Access fairly well on a 'above' basic level. I am able to achieve the results using 'multiple' queries, but I also know there is simpler code that can achieve the same results faster. Below represents the main 'data' table. It contains hundreds of thousands of records all identify 'mainly' by the [Job Number].
I have multiple [My Contractor]s. I have multiple [My Customers] They are all in Tables dedicated to each class, and are referenced as to not allow billing by, or to, any 'random' person or company.
Here's the Question: What I'm trying to achieve is much faster query (or whatever, maybe code in fields that call for lists to refresh) that, when ran, will tell me IF [My Contractor] has billed me, but I DIDN'T bill one of [My Customer] IF so THEN show me the LAST record of that [Job Number] based on largest [File Number] related to that [Job Number]
(I'm looking to check to see that I didn't miss billing my customers for jobs that are billed to me by my contractors) I have a series of queries that do the job, but are way too slow to add into forms for instant results.
If [My Contractor] billed me, but I didn't bill [Amonut] any of [My Customer] then show last record based on largest [File Number] to query [abc] that is the source of
[list 123]
Job Number SetterCompany Date To Date From Amount File Number Text Code 834852 My Contractor 11/18/14 4:42:43 PM
2568148
834852 Mr Contractor
11/19/14 4:43:30 PM $6.76 2568161
10 834852 My Company 11/19/14 4:46:12 PM
2568176
834852 My Customer 11/20/14 10:28:22 AM
$8.50 2568216