Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 1st, 2004, 02:57 PM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to StreetSweaper Send a message via MSN to StreetSweaper
Default two tables

Hello!
I have a database problem, Access 2000 - 2003.
The probles is as follows:

I have to tables.
one is called HuvudAktivitet and the other UnderAktivitet.
the first one has 4 columns:
1: HuvudAktivitetNr Counter [PK]
2:TotalTime number
3:TotalOverTime number
4:HuvudAktivitetsNamn Text(50)

the second has moore columns:
1:UnderAktivitetsNamn Text(50)
2:MaxTid number(double)
3:ArbetadTid number(double)
4:VarningsTid number(double)
5:OverTime number(double)
6:Progress Integer
7:Comments text(250)
8:HuvudAktivitetNr counter[fk]

Problem.
in table 1, i only insert the number and name, i leave TotalTime and TotalOverTime to be 0.
I want to get the Sum from ArbetadTid and OverTime in table 2, and get them in to the columns i table 1.(TotalTime and TotalOverTime)...

can any one help me please!!!!!

 
Old January 2nd, 2004, 04:39 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

you can problaby try an update statement something like one listed below I was not to sure on what you had. Tables my need to be switch around. I will recreated your tables and come up with with the proper syntax. This may start your think.

UPDATE HuvudAKtivitet INNER JOIN UnderAktivitet ON HuvudAKtivitet.HuvadAktiviteNr = UnderAktivitet.HuvudAktivitetNr SET UnderAktivitet.Arbetadtid = Sum(CCur([arbetadtid])), UnderAktivitet.Overtime = Sum(CCur([Overtime]));


 
Old January 4th, 2004, 06:31 AM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to StreetSweaper Send a message via MSN to StreetSweaper
Default

ok, i will try that. thanks for the help

 
Old January 4th, 2004, 02:45 PM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to StreetSweaper Send a message via MSN to StreetSweaper
Default

Hello!
The command did not work. anyone else who got any ideas?






Similar Threads
Thread Thread Starter Forum Replies Last Post
creating tables within tables in access??? carswelljr Access 3 August 23rd, 2006 01:21 PM
Fixed tables and/or fixed bkgrnd in tables slg111875 Dreamweaver (all versions) 1 June 22nd, 2006 02:31 PM
Regarding Tables spraveens HTML Code Clinic 2 October 20th, 2003 04:46 AM
regarding tables spraveens Dreamweaver (all versions) 1 September 24th, 2003 07:21 AM
Tables andy24 Classic ASP Databases 3 July 23rd, 2003 11:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.