D
David Anderson
Using Access 2000, I have designed a form that is intended to be used in
continuous forms mode and which contains both an Amount field and a
CurrencyID field. I want to ensure that the Amount field is always properly
formatted for the relevant currency.
Perhaps I am missing more obvious solutions, but I chose to put the
following code in the Current event of this form:
Select Case Me![CurrencyID]
Case 1 'Pounds Sterling
Me![Amount].Format = "£###0.00"
Case 2 'Euros
Me![Amount].Format = "€###0.00"
Case 3 'US Dollars
Me![Amount].Format = "$###0.00"
End Select
The problem is that the Current event is only being triggered once, even
though the underlying table contains many records. All instances of the form
in continuous forms mode therefore have the same formatting of the Amount
field - as set by the first record.
Why do I not get a Current event triggered for every instance of the form,
i.e. for every record in the table? How do I resolve this problem?
David
continuous forms mode and which contains both an Amount field and a
CurrencyID field. I want to ensure that the Amount field is always properly
formatted for the relevant currency.
Perhaps I am missing more obvious solutions, but I chose to put the
following code in the Current event of this form:
Select Case Me![CurrencyID]
Case 1 'Pounds Sterling
Me![Amount].Format = "£###0.00"
Case 2 'Euros
Me![Amount].Format = "€###0.00"
Case 3 'US Dollars
Me![Amount].Format = "$###0.00"
End Select
The problem is that the Current event is only being triggered once, even
though the underlying table contains many records. All instances of the form
in continuous forms mode therefore have the same formatting of the Amount
field - as set by the first record.
Why do I not get a Current event triggered for every instance of the form,
i.e. for every record in the table? How do I resolve this problem?
David