Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / March 2005

Tip: Looking for answers? Try searching our database.

Suppressing particular detail lines for blank data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 27 Mar 2005 18:34 GMT
I have a report based on a query where a number of the data elements are
Nulls.  I would like to suppress the detail when certain conditions are
met, ie, certain fields are Null.  When I try to set
Detail.Visible = False, I get NOTHING printed for any record line.

I suppose I could redo the query to eliminate this, but I use the same
query for other reports, and I'd like to minimize the complexity if
possible.

Thanks

Steve
Rick Brandt - 27 Mar 2005 18:42 GMT
> I have a report based on a query where a number of the data elements
> are Nulls.  I would like to suppress the detail when certain
[quoted text clipped - 8 lines]
>
> Steve

In the format event of the relevent section...

Cancel = IsNull(Me.SomeField)

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

Steve - 27 Mar 2005 23:55 GMT
BINGO!  That works great!  Thanks.

So why is this nowhere to be found in the docs??? <g>

Steve

>>I have a report based on a query where a number of the data elements
>>are Nulls.  I would like to suppress the detail when certain
[quoted text clipped - 12 lines]
>
> Cancel = IsNull(Me.SomeField)
Marshall Barton - 27 Mar 2005 20:05 GMT
>I have a report based on a query where a number of the data elements are
>Nulls.  I would like to suppress the detail when certain conditions are
[quoted text clipped - 4 lines]
>query for other reports, and I'd like to minimize the complexity if
>possible.

If you use a form button to initiate the report, then you
can filter the report's data by using the OpenReport
method's WhereCondition argument:

stDoc = "reportname"
stWhere = "fldA Is Not Null AND fldB Is Not Null"
DoCmd.OpenReport stDoc, , , stWhere

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.