K
kbelo
I am a newbie trying hard to create a function...so far
this is working for me:
Function BillingCode(totalvisits)
If totalvisits = 4 Then
BillingCode = "G0317"
ElseIf totalvisits = 3 Then
BillingCode = "G0318"
ElseIf totalvisits = 2 Then
BillingCode = "G0318"
ElseIf totalvisits = 1 Then
BillingCode = "G0319"
ElseIf totalvisits = 0 Then
BillingCode = 0
End If
End Function
However I would like to add another line(?variable) so
If totalvists = 1 And Day (FieldName) = "PD" Then
BillingCode = "G0323"
Everything I have tried, just has not worked. Thanks for
your help!
Kathy
this is working for me:
Function BillingCode(totalvisits)
If totalvisits = 4 Then
BillingCode = "G0317"
ElseIf totalvisits = 3 Then
BillingCode = "G0318"
ElseIf totalvisits = 2 Then
BillingCode = "G0318"
ElseIf totalvisits = 1 Then
BillingCode = "G0319"
ElseIf totalvisits = 0 Then
BillingCode = 0
End If
End Function
However I would like to add another line(?variable) so
If totalvists = 1 And Day (FieldName) = "PD" Then
BillingCode = "G0323"
Everything I have tried, just has not worked. Thanks for
your help!
Kathy