N
NewSysAdmin
Hello,
I need some help with a report. If there is no data/no records for the
report, I'd like to display the word "No" in a text box (Text150).
If there is data, I'd like to display "yes" in the same box if possible.
Here is my code in the report's no data section.
Private Sub Report_NoData(Cancel As Integer)
Report_Type_A_Report_New.Text150 = "No"
End Sub
I am not sure where to put the word "yes". As it is now, it displays "no"
even if there is data.
I also tried it another way under the Report_Open Sub. If there is no
customer name, that means there are no records:
If IsNull([Report_Type_A_Report_New.CustomerName]) Then
[Report_Type_A_Report_New.Text150 = "No"] Else:
[Report_Type_A_Report_New.Text150 = "Yes"] .
I'm not sure which way would be the best way to code it, but neither way
works as it is. I'd appreciate any suggestions. Thank you.
I need some help with a report. If there is no data/no records for the
report, I'd like to display the word "No" in a text box (Text150).
If there is data, I'd like to display "yes" in the same box if possible.
Here is my code in the report's no data section.
Private Sub Report_NoData(Cancel As Integer)
Report_Type_A_Report_New.Text150 = "No"
End Sub
I am not sure where to put the word "yes". As it is now, it displays "no"
even if there is data.
I also tried it another way under the Report_Open Sub. If there is no
customer name, that means there are no records:
If IsNull([Report_Type_A_Report_New.CustomerName]) Then
[Report_Type_A_Report_New.Text150 = "No"] Else:
[Report_Type_A_Report_New.Text150 = "Yes"] .
I'm not sure which way would be the best way to code it, but neither way
works as it is. I'd appreciate any suggestions. Thank you.