Help!
I have 2 tables in MS Access database, if I want to do a calculation of total hrs in table1
for each user with different Account type as "Client, Util....etc and update to second table 2 with the table setting as follow
Table 1: with 5 columns as follow
User Client Project Account Hours
Jennifer DSM DSM Client 8
Jennifer DSM DSM Client 8
Jennifer DSM DSM Client 5
Jennifer EU Utilized Engineering Util 4
Jennifer DSM Pre-Sales Client 8
Sinha US Ase Mentoring NonUtil 2
Sinha AMAT Pre-Sales Client 2
Sinha US Employee NonUtil 3
Sinha US Ase Metho None 1
Sinha AMAT Pre-Sales Client 2
Table 2:
User Ttl_hrsClient Ttl_hrsUtil Ttl_hrsNonUtil
Jennifer 29 4
I have a query:
INSERT INTO total_hrs ( [User], Ttl_Client )
SELECT [UserTime].[User], Sum([UserTime].[Hours]) AS Ttl_Client
FROM UserTime
WHERE ((([UserTime].[Account])="Client"
)
GROUP BY [UserTime].[User];
it only update one column in table 2, how I can inclued all other different column w/ different Account type.
Appreciate w/ any input
Michael
I have 2 tables in MS Access database, if I want to do a calculation of total hrs in table1
for each user with different Account type as "Client, Util....etc and update to second table 2 with the table setting as follow
Table 1: with 5 columns as follow
User Client Project Account Hours
Jennifer DSM DSM Client 8
Jennifer DSM DSM Client 8
Jennifer DSM DSM Client 5
Jennifer EU Utilized Engineering Util 4
Jennifer DSM Pre-Sales Client 8
Sinha US Ase Mentoring NonUtil 2
Sinha AMAT Pre-Sales Client 2
Sinha US Employee NonUtil 3
Sinha US Ase Metho None 1
Sinha AMAT Pre-Sales Client 2
Table 2:
User Ttl_hrsClient Ttl_hrsUtil Ttl_hrsNonUtil
Jennifer 29 4
I have a query:
INSERT INTO total_hrs ( [User], Ttl_Client )
SELECT [UserTime].[User], Sum([UserTime].[Hours]) AS Ttl_Client
FROM UserTime
WHERE ((([UserTime].[Account])="Client"
GROUP BY [UserTime].[User];
it only update one column in table 2, how I can inclued all other different column w/ different Account type.
Appreciate w/ any input
Michael