Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Use DAO to writ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 30311 of 31596
Post > Topic >>

Use DAO to write summary of one table into another

by inews@[EMAIL PROTECTED] May 19, 2008 at 12:03 AM

I want to sum all values in the profit field of table T and write it
to Table Sys.

I have instantiated object d as a DAO database object and various
other UPDATE queries are running fine, but only when I calculate from
values in the same table.  I just can't seem to find the right syntax.

d.Execute "UPDATE Sys SET Sys.NetProfit = SUM[T]![Profit];"

Beyond this, I would like to restrict the sum of profits to only those
whose row has a particular value in another field in T.

Any thoughts?  Any alternative paths?
 




 6 Posts in Topic:
Use DAO to write summary of one table into another
inews@[EMAIL PROTECTED]   2008-05-19 00:03:48 
Re: Use DAO to write summary of one table into another
Roger <lesperancer@[EM  2008-05-20 03:50:53 
Re: Use DAO to write summary of one table into another
lyle fairfield <lyle.f  2008-05-20 04:19:07 
Re: Use DAO to write summary of one table into another
"Builder" <n  2008-05-21 09:31:51 
Re: Use DAO to write summary of one table into another
lyle fairfield <lylefa  2008-05-21 14:05:52 
Re: Use DAO to write summary of one table into another
The Frog <Mr.Frog.to.y  2008-05-22 05:11:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:44:54 CST 2008.