P
PeteCresswell
Somewhere over the horizon is lurking the need to maintain security
holdings in currencies other than US dollars.
We've already got a "tlkpTradingAccount" for each account and the
users are happy with being limited to a single denomination per
account.
What I'm thinking:
------------------------------------------------------------------------------------------------
- tlkpTradingAccount:
Add a new column: "CurrencyID", that points to a new table
"tlkpCurrency"
- tlkpCurrency
New table with three columns:
.NameShort: The ISO abbreviation for the currency. e.g. USD
.NameLong: Free-form text like "Dollars", "Pounds Sterling",
"Euros"
.Format: MS Access type .Format descriptor. e.g. "$,###,###.
00"
- On each form and each report:
Identify any currency fields by adding "Currency" to .Tag
- Write a routine that, when fed a pointer to a form, boogies through
all the fields on that form and alters .Format for those with
"Currency" in their .Tag - using the format in tlkpCurrency
- Write another routine that does the same thing for a report.
- Assume that all currencies will be decimal. i.e. they follow the
same rules for basic arithmetic operations.
holdings in currencies other than US dollars.
We've already got a "tlkpTradingAccount" for each account and the
users are happy with being limited to a single denomination per
account.
What I'm thinking:
------------------------------------------------------------------------------------------------
- tlkpTradingAccount:
Add a new column: "CurrencyID", that points to a new table
"tlkpCurrency"
- tlkpCurrency
New table with three columns:
.NameShort: The ISO abbreviation for the currency. e.g. USD
.NameLong: Free-form text like "Dollars", "Pounds Sterling",
"Euros"
.Format: MS Access type .Format descriptor. e.g. "$,###,###.
00"
- On each form and each report:
Identify any currency fields by adding "Currency" to .Tag
- Write a routine that, when fed a pointer to a form, boogies through
all the fields on that form and alters .Format for those with
"Currency" in their .Tag - using the format in tlkpCurrency
- Write another routine that does the same thing for a report.
- Assume that all currencies will be decimal. i.e. they follow the
same rules for basic arithmetic operations.