S
scottyboyb
Good morning,
I have a text field (DonorOrganization) in a report (Unpaid Pledges). I
would like to have the field show and print n/a if the field is null and show
and print the field's data if it is not null. Here is what I have so far. It
stops at the line - Me!DonorOrganization = "n/a". So obviously I do not know
the correct syntax for the Else statement. Sorry to have such a simple
question. I should be able to figure this out, but not today.
Here is my code:
Private Sub Report_Open(Cancel As Integer)
If IsNull(Me!DonorOrganization) = True Then
Me!DonorOrganization = "n/a"
Else
Me!DonorOrganization
End If
End Sub
Thanks,
Scott
I have a text field (DonorOrganization) in a report (Unpaid Pledges). I
would like to have the field show and print n/a if the field is null and show
and print the field's data if it is not null. Here is what I have so far. It
stops at the line - Me!DonorOrganization = "n/a". So obviously I do not know
the correct syntax for the Else statement. Sorry to have such a simple
question. I should be able to figure this out, but not today.
Here is my code:
Private Sub Report_Open(Cancel As Integer)
If IsNull(Me!DonorOrganization) = True Then
Me!DonorOrganization = "n/a"
Else
Me!DonorOrganization
End If
End Sub
Thanks,
Scott