i'm using access with sql server (.adp) and i have this query to insert records in a table:
INSERT table1 (field1, field2, field3)
SELECT (field1, field2, field3)
FROM table2
WHERE (condition)
this is an schema of my query...
What i want to do is to add and UPDATE sencence like this for every record selected in table2
UPDATE table2 SET field4=field4-1 WHERE table1.field1=table2.field1
how can i do it... where do i have to put the UPDATE sentence?
thanks and sorry for my poor english
INSERT table1 (field1, field2, field3)
SELECT (field1, field2, field3)
FROM table2
WHERE (condition)
this is an schema of my query...
What i want to do is to add and UPDATE sencence like this for every record selected in table2
UPDATE table2 SET field4=field4-1 WHERE table1.field1=table2.field1
how can i do it... where do i have to put the UPDATE sentence?
thanks and sorry for my poor english