mswilson16
Programmer
Hi guys,
I have a reasonably large MDB. I have numerous reports that run fromt his database. 6 of the reports use a number of tables and queries for the record source. This is making the report slow, but it runs fine at the minute.
What I need to do is to make the report fill in blank spaces with "N/A". Because the report is so slow and a load more if statements would slow it down even more I was going to do this with something like
******************
Dim ctl As Control
For Each ctl In Me.Controls
If Left(ctl.Name, 3) = "txt" Then
If IsNull(ctl.Value) = True Then
ctl.Text = "N/A"
End If
End If
Next
******************
But the problem that I am having is that I can not change the value/text/caption or anything of the textbox once the report is in preview view.
Does anyone know what property I should be trying to change?
Thanks
Mswilson
I have a reasonably large MDB. I have numerous reports that run fromt his database. 6 of the reports use a number of tables and queries for the record source. This is making the report slow, but it runs fine at the minute.
What I need to do is to make the report fill in blank spaces with "N/A". Because the report is so slow and a load more if statements would slow it down even more I was going to do this with something like
******************
Dim ctl As Control
For Each ctl In Me.Controls
If Left(ctl.Name, 3) = "txt" Then
If IsNull(ctl.Value) = True Then
ctl.Text = "N/A"
End If
End If
Next
******************
But the problem that I am having is that I can not change the value/text/caption or anything of the textbox once the report is in preview view.
Does anyone know what property I should be trying to change?
Thanks
Mswilson