Operacja musi korzystać z zapytania, które można aktualizować. (Błąd 3073) Microsoft Access

Napisałem to zapytanie:

UPDATE tbl_stock1 SET 
tbl_stock1.weight1 = (
    select (b.weight1 - c.weight_in_gram) as temp 
    from
        tbl_stock1 as b,
        tbl_sales_item as c 
    where
        b.item_submodel_id = c.item_submodel_id 
        and b.item_submodel_id = tbl_stock1.item_submodel_id 
        and b.status <> 'D' 
        and c.status <> 'D'
    ), 
tbl_stock1.qty1 = (
    select (b.qty1 - c.qty) as temp1 
    from
        tbl_stock1 as b,
        tbl_sales_item as c 
    where 
        b.item_submodel_id = c.item_submodel_id 
        and b.item_submodel_id = tbl_stock1.item_submodel_id 
        and b.status <> 'D' 
        and c.status <> 'D'
    )
WHERE
    tbl_stock1.item_submodel_id = 'ISUBM/1' 
    and tbl_stock1.status <> 'D';

Dostałem ten komunikat o błędzie:

Operation must use an updatable query. (Error 3073) Microsoft Access

Ale jeśli uruchomię to samo zapytanie w SQL Server, zostanie ono wykonane.

Dzięki, Dinesh

questionAnswers(6)

yourAnswerToTheQuestion