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 / October 2004

Tip: Looking for answers? Try searching our database.

Error after Update to Access 2K3

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vel. - 25 Oct 2004 19:53 GMT
Hello,

Until today I was using MS Access 2000 for database managment.  I switched
to Access 2003.  Using some code I found in the knowledge base I used a
function for calculating a total of the detail section for each page.  It is
as follows:

Option Compare Database
Option Explicit
Public PageSum As Double
Public PagePaid As Double

Private Sub Detail_Print(Cancel As Integer, FormatCount As Integer)
  PageSum = PageSum + Reports![rep1500ELECTRONICb]![Cost] *
Reports!rep1500ELECTRONICb!Quantity
  PagePaid = PagePaid + Reports!rep1500ELECTRONICb!TotalPaid
End Sub

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
  ' reset the counter for each new page
  PageSum = 0
  PagePaid = 0
 
End Sub

Then the textboxes on my report reference PageSum and PagePaid

When I print the report I get a =Name? error in the fields.  

If you could help me figure out what's wrong I would greatly appreciate it,
since the report I'm printing is vital for billing purposes.

Thanks.
Vel. - 25 Oct 2004 20:45 GMT
Although I still don't understand why the old code no longer works, I did
some research and found a KB article that helped me out.

> Hello,
>
[quoted text clipped - 30 lines]
>
> 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.