Hide column when no data (1 Viewer)

Muaz

Registered User.
Local time
Today, 13:25
Joined
Dec 20, 2013
Messages
50
Hi,

I have a report in access having multiple columns. because of multiple columns it is not possible to display it in A4 size.

I want to hide the column when there is no data, Is there any possibility to hide column on the basis of criteria ?

Regards
Muaz
 

Ranman256

Well-known member
Local time
Today, 16:25
Joined
Apr 9, 2015
Messages
4,337
in the ON PRINT event

txtBox.visible = not isnull(txtBox)
 

vbaInet

AWF VIP
Local time
Today, 21:25
Joined
Jan 22, 2010
Messages
26,374
Ranman256 provided you with a useful lined of code that should do what you're asking for but this will leave a void in the report. So can you clarify if you're trying to hide an entire field that has no data in the entire recordset, hide a control when it's Null or hide blank rows?

Perhaps you can show us a screenshow of what you're talking about?
 

Users who are viewing this thread

Top Bottom