Update Query problem/question

Ginny2222

Ginny
Local time
Today, 20:46
Joined
Oct 27, 2007
Messages
108
Hi all,

Is it possible to use the result of a query to update a field in a Table. I keep getting an error - "operation must use an updateable query".

Any help appreciated.

rgs
Ginny:(
 
Thanks for the quick response, I'll read up ! !
Ginny
 
Hi Bob, it looks like I'm stuck. I have a query returning a single calculated value from 2 underlying tables. (I can output a second field which would have a text name which can be used as a criteria.) I now want to store this value in a table without creating a new table or appending it. Is there any way this can be achieved?
Ginny
 
Yes, I'm aware of that, but in this case, we want to run current month report from this database, but for a certain number of fields we are holding values to show a trend. This is an interim solution until something better is developed. Hence the departure from good practice!
Thanks for your help Bob,
Ginny
 
Is it possible to use the result of a query to update a field in a Table.
Of course it is!!...
Code:
UPDATE yourtable, thequeryholdingthevalue SET

          yourtable.yourfield = relevantquery.field (only holding one value)

WHERE clause, if needed
Non-Updatable queries do not affect this.
 
Thanks Pat, I've a lot to learn ! !
Yes, 'jumping through hoops' I have my data in a new table for each new month. I'll now work on getting this data into an existing table using update. I'm not feeling confident enough to try using DAO (Access 2000 I'm afraid) yet.
Ginny
 

Users who are viewing this thread

Back
Top Bottom