Results 1 to 5 of 5
  1. #1
    blewis81 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    23

    report over two pages_requires different backgrounds

    I have two separate reports that use pictures (external PDF forms) as backgrounds. First pages of both reports can only have about 4 or 5 rows before needing to be on another page so as not to misalign fields.


    One report's second page would be an excel. But the second would have the external pdf's second page. How do I do this? Both reports would be emailed. Think I should use the totalcount function but that's all I got. THANK YOU

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in the ON PAGE event of the report, swap the image:

    Code:
    Private Sub Report_Page()
    If [Page] = 2 Then
       img.Picture = ("C:\Pictures\Pge2Img.jpg")
    End If
    End Sub
    

  3. #3
    blewis81 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    23
    Done as suggested.....but how do I correctly use the totalcount function to implement that?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in the query, make a field =1.
    add to the report, set the property to running sum. (or if you have a count field, then =sum([countFld])

  5. #5
    blewis81 is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    23
    Going to have to "dumb it down" further I'm afraid. I added a "=1" column to query so now there is a "Expr1: 1" field in Design view / Expr1 field in Datasheet view.
    I assume "Add to the report" means I add the =1 field from "Add existing fields." I did change the Control Source to =1 (because Expr 1 just doesn't seem right) I put in footer and made it not visible...is that the correct location? Property set to running sum "Over Group". IF this is all correctly interpreted.....how do I make it >5 on first page and <6 on second page?
    Thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 16
    Last Post: 03-13-2018, 05:24 PM
  2. Replies: 9
    Last Post: 07-03-2017, 11:24 PM
  3. Replies: 2
    Last Post: 07-02-2015, 09:21 AM
  4. Allow users to select their own backgrounds...
    By redbull in forum Programming
    Replies: 4
    Last Post: 01-18-2013, 12:54 PM

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