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 / Modules / DAO / VBA / January 2005

Tip: Looking for answers? Try searching our database.

Visible property on Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LeAnn - 19 Jan 2005 17:59 GMT
Access 97

I have a form with a button that opens a report using a macro.  The macro
has a where condition to display the matching record.  When the report opens
I want to make a label control visible based on a text box (data field).  
I wrote an IF statement for the on Open event of the report:

If Me!XYZ <> "N/A" Then
Me!lblXYZNote.Visible = True
End If

I get an error saying that the expression refers to an object that doesn't
have a value.  It is a textbox control with the control source being a field
in the table.

How should I go about this?
Thanks
Alex Dybenko - 19 Jan 2005 18:18 GMT
Try to use Format event of corresponding report section

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

> Access 97
>
[quoted text clipped - 15 lines]
> How should I go about this?
> Thanks
LeAnn - 19 Jan 2005 19:27 GMT
Thanks - that did the trick.  Forgot about that event.  :)

> Try to use Format event of corresponding report section
>
[quoted text clipped - 17 lines]
> > How should I go about this?
> > Thanks
 
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.