Ok...I have a query as the record source for a form that I want to show the last record entered and all the data associated with the last record entered.
So for example...I have the following companies
Company A
Company B
Company C
Company D
Each has a manager or person in our company assigned to them and have projects open at different times...what I want the query to output is the following
Field 1 - Record 1 - Company A's Name
Filed 2 - Record 1 - Person attached to Company A
Field 3 - Record 1 - Last date that information was entered for Company A
Field 4 - Record 1 - Last stage Company A's project is at
Field 5 - Record 1- Last person who worked on a project with Company A or for Company A
Field 1 - Record 2 - Company B
Filed 2 - Record 2 - Person attached to Company B
Field 3 - Record 2 - Last date that information was entered for Company B
Field 4 - Record 2 - Last stage Company B's project is at
Field 5 - Record 2- Last person who worked on a project with Company B or for Company B
And so on and so forth. Just to note...the Person attached to Company A, Company B, etc. is in one table and the info in Field 1, 3, 4, and 5 is in another table. So I'm thinking the best way to connect the two is a query. The info that connects the two is the company name being the same in both tables.
I've tried using the last and first in the totals for the QBE...getting all kinds of doubles and wrong data. I guess this may be b/c a lot of the dates for the last date are identical. I tried changing the date from Date() to Now() but then the last sort for the QB only shows the 2nd to last record...not the last record. The only thing that has worked for the totals in the QBE is the Max for the date besides that everything else won't filter down to only the information associated with that particular DateofMax.
So any help is greatly appreciated.
Thanks.
Best,
Zhouma
Btw...I'm using Access 2007