bengiomanni
Registered User.
- Local time
- Today, 15:20
- Joined
- Mar 14, 2013
- Messages
- 25
I have a table called FundLedger. The primary key field is FundLedgerUID. Other fields I am using are AccountID, GiftReceivedDt, and DeductibleDonationAmt.
I am trying to write a query that will give me the FundLedgerUID for the earliest GiftReceivedDt for each AccountID. The reason I have to do this is because if I sort the table by GiftReceivedDt, the values in FundLedgerUID are not in the same order, meaning that it seems that some data must have been inserted out of sequence.
I don't know if I need a subquery or some kind of calculated field in the query. Part of me says this is much simpler than I am making it. I am new to very advanced Access features. Please help!
What I am ultimately trying to do is have a query that gives me the date of each AccountIDs first gift and the amount and the most recent gift and the amount. I was simply using a totals query at first and then I realized that for some of the accounts the query was not giving me the earliest date or the earliest gift amount because it was deciding this based on the primary key, which is sometimes out of sequence when compared to the date.
I am trying to write a query that will give me the FundLedgerUID for the earliest GiftReceivedDt for each AccountID. The reason I have to do this is because if I sort the table by GiftReceivedDt, the values in FundLedgerUID are not in the same order, meaning that it seems that some data must have been inserted out of sequence.
I don't know if I need a subquery or some kind of calculated field in the query. Part of me says this is much simpler than I am making it. I am new to very advanced Access features. Please help!
What I am ultimately trying to do is have a query that gives me the date of each AccountIDs first gift and the amount and the most recent gift and the amount. I was simply using a totals query at first and then I realized that for some of the accounts the query was not giving me the earliest date or the earliest gift amount because it was deciding this based on the primary key, which is sometimes out of sequence when compared to the date.
Last edited: