Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Access user, need Help with UPDATE

Status
Not open for further replies.

LionSkyWalker

Programmer
May 9, 2001
8
0
0
MX
Hi there, I'm new with the Access, I have some experience with SQL, and this is my problem

This run correctly in SQL:

Update Tabla1 Set Campo2 =
(Select Count(*) from Tabla2)

But it doesn't work with Access... How can I make it in it??

Thanx
 
Access queries that include domain functions are not updateable. To accomplish your purpose change the count query to a make table query then run the update query by joining to the table you just made to hold the counts.

It is generally poor practice to store data that can be easily calculated in a table. As soon as the base data is changed, the calculated result becomes obsolete and there is no way to know that this happened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top