R
ripon via AccessMonster.com
I have a select quey(q1) as follows:
SELECT MAX(CYR) AS Y1, MAX(CMN) AS M1 FROM TABLE1
Now I am trying to create an UPDATE query(q2) like this:
UPDATE TABLE2
SET TABLE2.MONTH =Q1.M1
WHERE TABLE2.YEAR= Q1.Y1
---I am getting an error. It taking Q1.Y1 as a parameter.
What is the problem.
SELECT MAX(CYR) AS Y1, MAX(CMN) AS M1 FROM TABLE1
Now I am trying to create an UPDATE query(q2) like this:
UPDATE TABLE2
SET TABLE2.MONTH =Q1.M1
WHERE TABLE2.YEAR= Q1.Y1
---I am getting an error. It taking Q1.Y1 as a parameter.
What is the problem.