Thanks - on the form that contains the letter that is created I now have
the
code below but I get the error:
'Run time error 2465:
Microsoft Office Access can't find the field'|' referred to in your
expression.
Debug highlights the days=line. If I remark it out I get the same error
but
for the next line of code.
Here is the code:
Private Sub Report_Activate()
Dim days As Integer
days = Now() - [members]![PAID TO]
Select Case Spec
Case [members]![TYPE] = "AINL"
[members]![Account_Due] = days / 14 * 8.689
Case [members]![TYPE] = "ENL"
[members]![Account_Due] = days / 14 * 14
Case [members]![TYPE] = "ENPL"
[members]![Account_Due] = days / 14 * 12
Case [members]![TYPE] = "RNL"
[members]![Account_Due] = days / 14 * 15.2
Case [members]![TYPE] = "RNPL"
[members]![Account_Due] = days / 14 * 13.529
Case [members]![TYPE] = "EN ASS"
[members]![Account_Due] = days / 14 * 2.1155
Case [members]![TYPE] = "RN ASS"
[members]![Account_Due] = days / 14 * 2.1155
End Select
End Sub
John Vinson said:
On Thu, 13 Oct 2005 22:34:01 -0700, Michael Trotter
AINL, ENL, etc are,at this stage, calculations done in the query. eg
AINL

calculation).
Account_Due is a field in the members table (to be currency) and I want
the
value of AINL etc to be placed in the field.
Ah!
Ok, you cannot reuse a calculated field in a further expression.
Rather than using the name AINL, you'll need to include the entire
calculation expression.
John W. Vinson[MVP]