CoffeeGuru
Registered User.
- Local time
- Today, 19:21
- Joined
- Jun 20, 2013
- Messages
- 121
It seems today that everyuthing I am trying to do smacks me around the face...
I have tblForcastMaster which is updated monthly via an Excel Linked table ForecastUpdate
Both tables have the same fields
firstly a query is run that will update all existing forecast multipliers with ammended values I have got this to work
Now I need to Append records from ForecastUpdate into tblForecastMaster where there is no matching record
this is my attempt but I cant even get a select to work
ForecastUpdate
Country | Code | Period | Value
GB | A123 | 01/011/2013 | 1.000789
GB | A123 | 01/012/2013 | 0.001234
GB | A125 | 01/012/2013 | 1.440739
IB | A123 | 01/012/2013 | 1.678832
tblForecastMaster
Country | Code | Period | Value
GB | A123 | 01/010/2013 | 1.12789
IB | A123 | 01/011/2013 | 1.740944
DE | A125 | 01/011/2013 | 1.846490
GB | A123 | 01/011/2013 | 0.783099
I have tblForcastMaster which is updated monthly via an Excel Linked table ForecastUpdate
Both tables have the same fields
firstly a query is run that will update all existing forecast multipliers with ammended values I have got this to work
Now I need to Append records from ForecastUpdate into tblForecastMaster where there is no matching record
this is my attempt but I cant even get a select to work
Code:
SELECT
ForecastUpdate.Territory, ForecastUpdate.Tier3, ForecastUpdate.Period, ForecastUpdate.Multiplier, tblForecastMaster.Period
FROM
ForecastUpdate
INNER JOIN
tblForecastMaster
ON
ForecastUpdate.Period = tblForecastMaster.Period
WHERE
(((tblForecastMaster.Period) Is Null));
ForecastUpdate
Country | Code | Period | Value
GB | A123 | 01/011/2013 | 1.000789
GB | A123 | 01/012/2013 | 0.001234
GB | A125 | 01/012/2013 | 1.440739
IB | A123 | 01/012/2013 | 1.678832
tblForecastMaster
Country | Code | Period | Value
GB | A123 | 01/010/2013 | 1.12789
IB | A123 | 01/011/2013 | 1.740944
DE | A125 | 01/011/2013 | 1.846490
GB | A123 | 01/011/2013 | 0.783099