chris davies
Registered User.
- Local time
- Today, 20:43
- Joined
- Mar 20, 2005
- Messages
- 86
hello,
I am trying to get data from one field in one table to another, depending on the value of a field in the destination table. For example I have field called treatment in an invoice table which has been populated via an append query. Now I need to have the cost of this treatment in the same invoice table. I have tried various sql insert commmands but to no avail. I can't seem to get the microsoft access sql syntax correct. I want to try something like this:
insert into invoice (cost) where invoice.treatmentname=treatment.treatmentname;
Like I said, the syntax is wrong. Any ideas please?
Chris
I am trying to get data from one field in one table to another, depending on the value of a field in the destination table. For example I have field called treatment in an invoice table which has been populated via an append query. Now I need to have the cost of this treatment in the same invoice table. I have tried various sql insert commmands but to no avail. I can't seem to get the microsoft access sql syntax correct. I want to try something like this:
insert into invoice (cost) where invoice.treatmentname=treatment.treatmentname;
Like I said, the syntax is wrong. Any ideas please?
Chris