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


Software > Access ODBC Client Server > Count Function ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1415 of 1511
Post > Topic >>

Count Function in an Update Query

by =?Utf-8?B?UmVpbmhhcmQ=?= <Reinhard@[EMAIL PROTECTED] > Dec 11, 2007 at 01:40 PM

How do I update a field in 1 table with the count of matching records in a 
2nd table? I keep getting error 3122 when I attempt this. 

My example is

UPDATE Table1 INNER JOIN Table2 ON Table1.Field2 = Table2.Field2
SET Table1.Field1 = COUNT(Table2.Field2)
GROUP BY Table2.Field2 ;
 




 4 Posts in Topic:
Count Function in an Update Query
=?Utf-8?B?UmVpbmhhcmQ=?=   2007-12-11 13:40:00 
Re: Count Function in an Update Query
"Douglas J. Steele&q  2007-12-11 17:14:06 
Re: Count Function in an Update Query
=?Utf-8?B?UmVpbmhhcmQ=?=   2007-12-11 14:25:01 
Re: Count Function in an Update Query
"Pat Hartman" &  2008-01-10 13:28:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Nov 22 1:15:47 CST 2008.