T
Tony Williams
I have three tables Table1, Table2, and Table3
Table1 holds numeric data fields in £sterling, a text field that holds the
name of the company and a date field to identify the month to which the data
applies
Table2 holds numeric data fields in Euros, a text field that holds the name
of the company and a date field to identify the month to which the data
applies
Table3 holds two fields; a date field which coincides with the date fields
in Table1 and Table2 and a numeric filed that holds the value of the Euro in
that month
The fields in Table1 and Table2 have the same names.
For any month I want to convert the data for each company in Table2 from
Euros to £sterling and update the equivalent field in Table1
Table2 data is
Date Company Data1 Data2
01/01/05 CompanyA 2200 3400
01/01/05 CompanyB 1500 1650
01/02/05 CompanyA 2000 3000
01/02/05 CompanyB 1500 1550
Table3 data is
Date Eurovalue
01/01/05 1.6
01/02/05 1.5
I want to update the Data1 and Data2 fields in Table1 with the converted
values of Data1 and Data2 from Table2
Something like [Table1].[Data1] for [CompanyA] on 01/01/05 =
[Table2].[Data1] for [CompanyA] on 01/01/05 multiplied by [Eurovalue] on
01/01/05 ( which is 1.6) and so on for all companies
Can someone start me off in the right direction as to how I go about this?
As ever thanks for being there!
Tony
Table1 holds numeric data fields in £sterling, a text field that holds the
name of the company and a date field to identify the month to which the data
applies
Table2 holds numeric data fields in Euros, a text field that holds the name
of the company and a date field to identify the month to which the data
applies
Table3 holds two fields; a date field which coincides with the date fields
in Table1 and Table2 and a numeric filed that holds the value of the Euro in
that month
The fields in Table1 and Table2 have the same names.
For any month I want to convert the data for each company in Table2 from
Euros to £sterling and update the equivalent field in Table1
Table2 data is
Date Company Data1 Data2
01/01/05 CompanyA 2200 3400
01/01/05 CompanyB 1500 1650
01/02/05 CompanyA 2000 3000
01/02/05 CompanyB 1500 1550
Table3 data is
Date Eurovalue
01/01/05 1.6
01/02/05 1.5
I want to update the Data1 and Data2 fields in Table1 with the converted
values of Data1 and Data2 from Table2
Something like [Table1].[Data1] for [CompanyA] on 01/01/05 =
[Table2].[Data1] for [CompanyA] on 01/01/05 multiplied by [Eurovalue] on
01/01/05 ( which is 1.6) and so on for all companies
Can someone start me off in the right direction as to how I go about this?
As ever thanks for being there!
Tony