Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ma access 3073 error operation must be an updateable query

Status
Not open for further replies.

nicklewis

IS-IT--Management
Feb 7, 2005
21
GB
hi can anyone help with this problem?

what im trying to do is just do some basic calculations which did work beofre attempting an upsize and now has decided to stop funtioning and reporting the error above. what is this acctually refering too then?
 
What is the SQL code of your Update query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
When you say "upsize", do you actually mean you are migrating to MS SQL Server?

 
UPDATE ShiftType INNER JOIN ((ProductInformation INNER JOIN ((Plant INNER JOIN (([Date] INNER JOIN Downtime ON Date.DateId = Downtime.DateId) INNER JOIN [Order] ON Date.DateId = Order.DateId) ON (Plant.PlantId = Downtime.PlantId) AND (Plant.PlantId = Order.PlantId)) INNER JOIN Product ON (Date.DateId = Product.DateId) AND (Plant.PlantId = Product.PlantId)) ON (ProductInformation.ProductInformationId = Order.ProductInformationId) AND (ProductInformation.ProductInformationId = Product.ProductInformationId)) INNER JOIN Shift ON (Plant.PlantId = Shift.PlantId) AND (Date.DateId = Shift.DateId)) ON (ShiftType.ShiftTypeId = Downtime.ShiftTypeId) AND (ShiftType.ShiftTypeId = Shift.ShiftTypeId) AND (ShiftType.ShiftTypeId = Product.ShiftTypeId) SET Shift.ShiftLengthOPE = [Shift]![TotalShiftLength]-[Downtime]![Lunch/Dinner]-[Downtime]![DevelopmentOrder]-[Downtime]![Meetings], Shift.ShiftLengthTE = [Shift]![TotalShiftLength]-[Downtime]![Lunch/Dinner], Product.PacksProduced = [Product]![CasesProduced]*[ProductInformation]![PacksPerCase], Product.TECalculationp1 = [ProductInformation]![BudgetStaffingLevel]/[Product]![ActualStaffingLevel], Product.SlowRunningCalculationp1 = [Product]![RunSpeed]/[ProductInformation]![MaximumThroughput];

BUT THIS IS COMING UP WITH THE SAME ERROR ON ALL UPDATE QUERYS
 
I don't use MS SQL Server but I've seen this happenning in other posts - you need something like a unique index or primary key declaration on the target join fields. Experiment with that or do some searches on these forums.

 
UPDATE ShiftType
SET Shift.ShiftLengthOPE = [Shift]![TotalShiftLength

You are saying to update the table ShiftType, yet the Set statement is refering to the Shift table. You need to update the table you pick to update.

Also the ! is not valid in sql server. A hierarchy is deliniated by .

[Shift].[TotalShiftLength
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top