Heidestrand
Registered User.
- Local time
- Yesterday, 22:52
- Joined
- Apr 21, 2015
- Messages
- 73
Hello community,
I'm dealing with a rather small problem at the moment. I want to update a column in my table with a value from a SELECT Count query. But Access tells me that the operation must use an updateable query. The thing is that I don't know how to do it :/.
Just to give you an example: In this table I want to count how often the system appears within a date time frame:
It's "4" in this case based on the constraint in my code.
And now I want to update this table respectively column Interim01 with the value 4 for the system "Artis one China":
I tried to perform this update with this code:
.. but it doesn't work.
Does anyone know how I make this work?
Really appreciate your help
I'm dealing with a rather small problem at the moment. I want to update a column in my table with a value from a SELECT Count query. But Access tells me that the operation must use an updateable query. The thing is that I don't know how to do it :/.
Just to give you an example: In this table I want to count how often the system appears within a date time frame:

It's "4" in this case based on the constraint in my code.
And now I want to update this table respectively column Interim01 with the value 4 for the system "Artis one China":

I tried to perform this update with this code:
Code:
UPDATE tblUnitsNewOrders
SET Interim01 =
(SELECT Count(System) AS Ausdr1
FROM tblReport
WHERE (tblReport.[System]) LIKE 'Artis zee ceiling' AND tblReport.OrderDate Between #2/5/16# And #2/18/16#)
WHERE tblUnitsNewOrders.System LIKE 'Artis one China';
Does anyone know how I make this work?

Really appreciate your help
