Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Count and Sum

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-08-23 : 18:25:07
Bill writes [i]"I have two tables in a access database. I want to search thur one table by date or between to dates like WHERE thedate >= #06/28/99# AND theDate <= #07/28/00# The tables has the follwing Fields.

TableA
ID
User_ID
Location_ID
theDate
Type_ID
DetailType_ID
Description
Account
Debit
Credit


TableB
theDate
ID
Account
Description
Expr1
Count

When I do a Query by theDate from tableA I want to count the different accounts by date and put that into tableB, but I need to put the value of Expr1 of TableB into tableB. Expr1 = tableA.Credit + tableA.Debit and also put the count value into tableB.Count. I was wondering if it is possible thur SQL? Bill
   

- Advertisement -