G
Gus Chuch
Are you aloud to qualify criteria’s in an UPDATE Query?
I’m trying do a UPDATE Query to import information from one table to another
but I’m having trouble getting it to work. If I run the query as followed it
works find.
UPDATE tblIncomeDetail SET tblIncomeDetail.IncomeDetailID = "1893"
WHERE (((tblIncomeDetail.LocationID)=6) AND
((tblIncomeDetail.Date)=#1/4/2008#));
But when I qualify my criteria’s and SET , it doesn’t
UPDATE tblIncomeDetail SET tblIncomeDetail.IncomeDetailID =
[Tables]![tblIncomeSum]![IncomeID]
WHERE (((tblIncomeDetail.LocationID)=[Tables]![tblIncomeSum]![LocationID])
AND ((tblIncomeDetail.Date)=[Tables]![tblIncomeSum]![Date]));
Any ideas?
I’m trying do a UPDATE Query to import information from one table to another
but I’m having trouble getting it to work. If I run the query as followed it
works find.
UPDATE tblIncomeDetail SET tblIncomeDetail.IncomeDetailID = "1893"
WHERE (((tblIncomeDetail.LocationID)=6) AND
((tblIncomeDetail.Date)=#1/4/2008#));
But when I qualify my criteria’s and SET , it doesn’t
UPDATE tblIncomeDetail SET tblIncomeDetail.IncomeDetailID =
[Tables]![tblIncomeSum]![IncomeID]
WHERE (((tblIncomeDetail.LocationID)=[Tables]![tblIncomeSum]![LocationID])
AND ((tblIncomeDetail.Date)=[Tables]![tblIncomeSum]![Date]));
Any ideas?