Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IsEmpty / Is Null command help

Status
Not open for further replies.

vicktown

Technical User
Jul 13, 2004
27
0
0
CA
Hi,

I am trying to get a text box (Texst box 30)on a form to print the words "NO DATA" if a certain text feild from a record is empty.

The text box and reference field for the record are being accessed in a report's section header from a query.

I am trying to use the IsEmpty or IsNull command in the On Format Event Procedure in the reports Section Footer but am having problems. Note that the section footer is where Text box 30 is.

does any one have any ideas about how to do this?
 
Hi

How about

If Len(Trim(Nz(TheColumnInQuestion,"")&"")) = 0 Then
txtBox30 = "No Data"
Else
txtBox30 = TheFieldInQuestion
End if

you would need to put a bound control for TheFieldinQuestion on the report in the same section, with visible set to false


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top