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 / November 2005

Tip: Looking for answers? Try searching our database.

run-time error 2455 "Invalid reference to property Form/Report"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill R - 30 Nov 2005 22:59 GMT
I have the following code in a report module:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me!srRemarks.Visible = Me!srRemarks.Report.HasData
Me!srDates.Visible = Me!srDates.Report.HasData
Me!srEngineers.Visible = Me!srEngineers.Report.HasData
End Sub

This used to work like a charm a couple of months ago when I last visited the
report. Now I get the subject error.

All of a sudden Me!srRemarks.Report.HasData generates an error. Any
suggestions would be appreciated.

Thanks,

Bill
Duane Hookom - 30 Nov 2005 23:09 GMT
Do you realize that if a subreport doesn't have data, it won't appear even
if you want it to? I doubt you need any code to do this.

Signature

Duane Hookom
MS Access MVP
--

>I have the following code in a report module:
>
[quoted text clipped - 14 lines]
>
> Bill
 
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.