If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
add column
is there a way to add columns in a query for example
Loan officer # Loans Dan 2 Ed 3 Frank 8 is there a way to total these numbers up at the bottom? |
#2
|
|||
|
|||
add column
You can do something like this. The first query gets the name of the officer
and the count of each one's loans. The second query gets the total count of all loans. SELECT LoanOfficer, Count(LoanOfficer) AS NumberOfLoans FROM Loans GROUP BY LoanOfficer UNION SELECT "Total", Count(LoanOfficer) FROM Loans; -- Lynn Trapp MS Access MVP www.ltcomputerdesigns.com Access Security: www.ltcomputerdesigns.com/Security.htm "Dan" wrote in message ... is there a way to add columns in a query for example Loan officer # Loans Dan 2 Ed 3 Frank 8 is there a way to total these numbers up at the bottom? |
Thread Tools | |
Display Modes | |
|
|