John,
Hope you had a very Merry Christmas. On 12/4/08, I described my table as I
am not sure how to give you an SQL view for a table, here is the information
again.
I have:
Field Name: ABANK
Data Type: AutoNumber
Field Name: Bank
Data Type: Number (I have a join query connected to this table)
Field Name: MonthYear
Data Type: Number (Join query connected with this table)
Field Name: BegBalDate
Data Type: Date/Time
Field Name: BegBal
Data Type: Currency
As stated in the December 4, 2008 post, I have approximately 15 beginning
balances with their dates listed in my table. I want to be able to pick just
ONE date with the beginning balance which corresponds to that date.
My query is this:
SELECT tblBANK.Bank, tbl_ARVEST.ABegBalDate, tbl_ARVEST.ABegBal
FROM tblMONTHYEAR INNER JOIN (tblBANK INNER JOIN tbl_ARVEST ON tblBANK.BANKS
= tbl_ARVEST.Bank) ON tblMONTHYEAR.MONTH_YEAR = tbl_ARVEST.MonthYear
GROUP BY tblBANK.Bank, tbl_ARVEST.ABegBalDate, tbl_ARVEST.ABegBal
HAVING (((tblBANK.Bank)="ARVEST Bank") AND ((tbl_ARVEST.ABegBalDate) Between
[Forms]![FrmDates]![TxtStart] And [Forms]![FrmDates]![TxtEnd]));
The ultimate goal is to be able to create a report in which I have the
beginning balance of a certain year, then am able to add the income and
expenses by using
Between [Forms]![FrmDates]![TxtStart] And [Forms]![FrmDates]![TxtEnd])) to
work .
Currently, I am trying to add the begbal and the total income together to
get a total assets.
I have added the total expenses together.
However, I am having difficulty in obtaining the correct ending balance.
When we solve the problem with the beginning balance, I will try and give
you the SQL statement of the Reports and SubReports which I have.
Thank you so much for you time,
Karen