This one should be a drop dead no brainer... I must have mind lock... I can't seem to think this one through. I have a standard (I built it) query which provides records to a report. I have 2 possiblities for a Physician's name depending on the financial group that the patient belongs to. If a couple of fields are certain values then I want the secondary physican's name shown other wise I want to show the attending physician.
I think it should look something like this and I have put it in the On_Format event of the detail line of the report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If ([AUTHENT_STATUS] = "S" And ([FINCLASS_GROUP_ID] > 0 And [FINCLASS_GROUP_ID] < 4)) Or ([AUTHENT_STATUS] = "M" Then
Me!Physician_last_name = SEC_PROVIDER_NAME_LAST
Else
Me!Physician_last_name = ATT_PROVIDER_NAME_LAST
End If
End Sub
The problem is that I must not be using the right naming convention (told you it was simple) cause when I run the report it does not recognize any of the names of the fields in the query... Can someone steer me in the right direction please.
Mega Thanks in Advance
I think it should look something like this and I have put it in the On_Format event of the detail line of the report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If ([AUTHENT_STATUS] = "S" And ([FINCLASS_GROUP_ID] > 0 And [FINCLASS_GROUP_ID] < 4)) Or ([AUTHENT_STATUS] = "M" Then
Me!Physician_last_name = SEC_PROVIDER_NAME_LAST
Else
Me!Physician_last_name = ATT_PROVIDER_NAME_LAST
End If
End Sub
The problem is that I must not be using the right naming convention (told you it was simple) cause when I run the report it does not recognize any of the names of the fields in the query... Can someone steer me in the right direction please.
Mega Thanks in Advance