mckenneyj
MIS
- Jun 1, 2002
- 96
I have a report with the field "MemCat" on it
It prints membership dues based on membership category.
The code that calculates the dues is in a module
ex:
Public Function DuesBefore1130() As Currency
Select Case [MemCat]
Case "Active"
DuesBefore1130 = x + y - j
Case "InActive"
DuesBefore1130 = x + y - j + 50
Case "etc..."
foo
End Select
End Function
In this case [MemCat] is on the current record of the recordset of the current report.
so how do I have the code above reference the current record of the current reports recordset as I may want to use this module to refernce any report that may be open
Thanks,
John McKenney
Work Hard... Play Harder
It prints membership dues based on membership category.
The code that calculates the dues is in a module
ex:
Public Function DuesBefore1130() As Currency
Select Case [MemCat]
Case "Active"
DuesBefore1130 = x + y - j
Case "InActive"
DuesBefore1130 = x + y - j + 50
Case "etc..."
foo
End Select
End Function
In this case [MemCat] is on the current record of the recordset of the current report.
so how do I have the code above reference the current record of the current reports recordset as I may want to use this module to refernce any report that may be open
Thanks,
John McKenney
Work Hard... Play Harder