ejstefl
01-28-2002, 04:54 PM
Hello everyone,
I hope you can help me. I work in a mutual funds operations environment, and I have created a database to track our balance of an account to the fund's balance of that account.
Here is how the database is set up: One table for accounts, which has an accountID, and one table for balances, which has an accountID and a balanceID. I have set up a form for accounts with a subform for balances. That way, I can see a running history of balances.
For reporting purposes, I need to use the current balance (I have a date field to show the date it was balanced). The problem is that I don't know how to do this, aside from having a field labeled "flag" where you put an 'x' by the most recent record. In the balances table, there may be 5 records that have the same accountID, but different dates. So I need to select the most recent one of those 5, for each accountID. I can do this with a flag field, but I would also like to do a report showing how long it takes to balance something, and I can't make that work with the flag. Any ideas on how I can do this? Is my design flawed?
Sorry for the long post, any help would be greatly appreciated. Thanks!
Eric
I hope you can help me. I work in a mutual funds operations environment, and I have created a database to track our balance of an account to the fund's balance of that account.
Here is how the database is set up: One table for accounts, which has an accountID, and one table for balances, which has an accountID and a balanceID. I have set up a form for accounts with a subform for balances. That way, I can see a running history of balances.
For reporting purposes, I need to use the current balance (I have a date field to show the date it was balanced). The problem is that I don't know how to do this, aside from having a field labeled "flag" where you put an 'x' by the most recent record. In the balances table, there may be 5 records that have the same accountID, but different dates. So I need to select the most recent one of those 5, for each accountID. I can do this with a flag field, but I would also like to do a report showing how long it takes to balance something, and I can't make that work with the flag. Any ideas on how I can do this? Is my design flawed?
Sorry for the long post, any help would be greatly appreciated. Thanks!
Eric