B
bw
I have a field [BillingAmt] that comes from the same table as [WaivedAmt].
I have a Public Function as follows:
Public Function TheBillingTotal()
If BillDate < #10/18/2006# Then
If Nz([WaivedAmt]) = Nz([BillingAmt]) Then
TheBillingTotal = 0
Else
TheBillingTotal = Nz([BillingAmt])
End If
Else
TheBillingTotal = Nz([Meals]) + Nz([Airfare]) + Nz([Hotel])
End If
End Function
In stepping through the code, I see that: [BillingAmt]=MSAccess can't
find the field "BillingAmt" referred...
I have, by experimenting found that if I, in another Public Function, define
a variable Test as a variant, then insert the following code:
Test=Nz(BillingAmt]), then the Public Function TheBillingTotal works Okay???
Can someone explain why I need this weird work around to get my function to
work? Why can't Access find [BillingAmt]?
By the way, in the whole report, this Public Function is the only place that
[BillingAmt] is referenced.
Thanks,
Bernie
I have a Public Function as follows:
Public Function TheBillingTotal()
If BillDate < #10/18/2006# Then
If Nz([WaivedAmt]) = Nz([BillingAmt]) Then
TheBillingTotal = 0
Else
TheBillingTotal = Nz([BillingAmt])
End If
Else
TheBillingTotal = Nz([Meals]) + Nz([Airfare]) + Nz([Hotel])
End If
End Function
In stepping through the code, I see that: [BillingAmt]=MSAccess can't
find the field "BillingAmt" referred...
I have, by experimenting found that if I, in another Public Function, define
a variable Test as a variant, then insert the following code:
Test=Nz(BillingAmt]), then the Public Function TheBillingTotal works Okay???
Can someone explain why I need this weird work around to get my function to
work? Why can't Access find [BillingAmt]?
By the way, in the whole report, this Public Function is the only place that
[BillingAmt] is referenced.
Thanks,
Bernie