K
kmhnhsuk
Hi there,
I have two tables one for Fixed Assets called tblFixedAssetRegister and one
for depreciation called tblDeprnTotal. The table called tblDeprnTotal is the
result of a 'Make Table Query' that basically calculates the depreciation for
the period and gives a total for each asset so far. This table will be
deleted and re-created each month.
I basically want a way of updating tblFixedAssetRegister with the total
depreciated so far for each asset. I have a field within the
tblFixedAssetRegister to hold these details. The unique identifier in
tblFixedAssetRegister is called 'Asset Number' and the same id in
tblDeprnTotal is called 'Reference'.
I have created an update query to perform the update of
tblFixedAssetRegister with the 'Depreciated So Far' but it does not appear to
work. Access prompts for 2 parameters - one called
tblFixedAssetRegister.[Asset Number] and the other is tblDeprnTotal.Credit
Here is the code for the update query:
UPDATE tblFixedAssetRegister SET tblFixedAssetRegister.[Depreciated So Far]
= [tblDeprnTotal].[Credit]
WHERE ((([tblDeprnTotal].[Reference])=[tblFixedAssetRegister].[Asset
Number]));
Can anyone help?
I have two tables one for Fixed Assets called tblFixedAssetRegister and one
for depreciation called tblDeprnTotal. The table called tblDeprnTotal is the
result of a 'Make Table Query' that basically calculates the depreciation for
the period and gives a total for each asset so far. This table will be
deleted and re-created each month.
I basically want a way of updating tblFixedAssetRegister with the total
depreciated so far for each asset. I have a field within the
tblFixedAssetRegister to hold these details. The unique identifier in
tblFixedAssetRegister is called 'Asset Number' and the same id in
tblDeprnTotal is called 'Reference'.
I have created an update query to perform the update of
tblFixedAssetRegister with the 'Depreciated So Far' but it does not appear to
work. Access prompts for 2 parameters - one called
tblFixedAssetRegister.[Asset Number] and the other is tblDeprnTotal.Credit
Here is the code for the update query:
UPDATE tblFixedAssetRegister SET tblFixedAssetRegister.[Depreciated So Far]
= [tblDeprnTotal].[Credit]
WHERE ((([tblDeprnTotal].[Reference])=[tblFixedAssetRegister].[Asset
Number]));
Can anyone help?