Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 71
  1. #46
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Arghh...


    I forgot to remove that
    Just remove this line from code for every report in VBA editor:

    Click image for larger version. 

Name:	commm.jpg 
Views:	9 
Size:	85.2 KB 
ID:	23824

    Open VBA editor (Alt+F11), double click on each report name on the left and remove or comment that line. It was just to help me check if it's counting properly

  2. #47
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Ok I took that code out and the pop up no longer comes up. However still not counting correctly for some reason. I am missing something for some reason...Just not sure what it is.
    May or may not be at work tomorrow, big icestorm heading our way.

    Thanks again mate much appreciated. Your a huge help. Owe yeah a beer lol

    Click image for larger version. 

Name:	Capture.JPG 
Views:	7 
Size:	39.3 KB 
ID:	23830

  3. #48
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Why would it start from page 2?
    Anyway, if you want that, just change the initial value of NoOfPages in InitToc() function to 1 (it's 0 now).

  4. #49
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    I mean that 3rd case under Decisions Released in actually on the 2nd page. First two cases are on pg 1 so that is fine.

  5. #50
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Oh, ok, I'll have a look at it tomorrow. In db you sent last time all reports had one page only.

  6. #51
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Ok, this one counts properly. I changed the code a bit again so make sure you got the most actual one.


    Testing_Litigation_DB1.zip

  7. #52
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Thanks I will take a look

  8. #53
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Took at look at what you sent me. It still isn't counting correctly. On the first report decisions made there are 2 pages and it says the last entry is on pg1.

    PeterClick image for larger version. 

Name:	Capture.JPG 
Views:	6 
Size:	24.3 KB 
ID:	23863

  9. #54
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    How many cases is on that first report? Four. And I can see three only on your ToC report. Second report also contains 4 cases, and again I can see three.
    Did you remember that you HAVE TO cycle through all pages of every report in order to make entry in ToC table? It won't enter all cases automatically just by opening print preview. You must print preview EVERY page, that's where "magic" happens.
    Exactly same db shows this, when previewed correctly:

    Click image for larger version. 

Name:	tocx2.jpg 
Views:	7 
Size:	58.7 KB 
ID:	23867

  10. #55
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Unfortunately I had a db crash and lost a few days work..Will test it when I get it all back..Makes sense though that I need to cycle through.

    Thanks

  11. #56
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Got it all up and running. Thanks for all your help!!!

    Much appreciated have a great weekend.

    Pete
    Attached Files Attached Files

  12. #57
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270

  13. #58
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Hey just printing things out creating title pages and stuff.. I wonder if there is a way to get access to print the correct pages numbers on the reports themselves. Didn't think to check that.
    Ie I print 3 reports as you know and each report has page numbers on the bottom but they start over for each page. So the Table of Contents is correct but the page numbers are not.

    Think that is possible to pull the data from that?

  14. #59
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Wouldn't be easier to just print one report containing all 3 as subreports? Much less mess with page numbers and ToC updating. Especially if you're always going to print all 3.

  15. #60
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Ok will look up how to do that and give it a go

Page 4 of 5 FirstFirst 12345 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-04-2014, 04:58 PM
  2. Table of Contents
    By Alex Motilal in forum Reports
    Replies: 1
    Last Post: 09-17-2012, 10:48 AM
  3. Replies: 5
    Last Post: 04-18-2012, 12:04 PM
  4. Replies: 10
    Last Post: 01-06-2012, 07:46 AM
  5. Print Separate Reports with collate
    By HendriX99 in forum Reports
    Replies: 3
    Last Post: 02-04-2011, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums