Hello everyone.
I have made a query using two of my tables. One table only has an account number and account name. The other has all the extra stuff like date creditAmount debitAmount etc. The tables are one to many with referential ticked. All of the rest of my database works fine. I am trying to add a new piece and made a query from the above two tables which drags the account name, account number, date, debitAmount and creditAmount, The account name can have many transactions in it with all sorts of dates.
When I make my query it totals the debitAmount just fine and the creditAmount just fine also. It also includes the entire database as just account totals ( which within reason is what I want). However, as soon as I put in the date field and enter a 'start' 'finish' criteria the whole things goes silly. If I run the query it shows the total debitAmount on one line for June, the total creditAmount for June on another and the same for July etc.
I am actually trying to get the debits and credits for my 'start' 'finish' dates to show as a total either as a difference figure, or even seperate so long as I just get one line of totals for each account regardless of the number of entries for it.
Yeah, I know, you can tell I am pretty new at this but I have got a long way without asking too many questions so perhaps someone can set me along the right path to what I am doing wrong here.
I have tried a make table query and am getting the same results as doing a select query.
Any help would be so nice
Thanks all
Dais
I have made a query using two of my tables. One table only has an account number and account name. The other has all the extra stuff like date creditAmount debitAmount etc. The tables are one to many with referential ticked. All of the rest of my database works fine. I am trying to add a new piece and made a query from the above two tables which drags the account name, account number, date, debitAmount and creditAmount, The account name can have many transactions in it with all sorts of dates.
When I make my query it totals the debitAmount just fine and the creditAmount just fine also. It also includes the entire database as just account totals ( which within reason is what I want). However, as soon as I put in the date field and enter a 'start' 'finish' criteria the whole things goes silly. If I run the query it shows the total debitAmount on one line for June, the total creditAmount for June on another and the same for July etc.
I am actually trying to get the debits and credits for my 'start' 'finish' dates to show as a total either as a difference figure, or even seperate so long as I just get one line of totals for each account regardless of the number of entries for it.
Yeah, I know, you can tell I am pretty new at this but I have got a long way without asking too many questions so perhaps someone can set me along the right path to what I am doing wrong here.
I have tried a make table query and am getting the same results as doing a select query.
Any help would be so nice
Thanks all
Dais