Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I opened that one. This doesn't do what I'm trying to do. I have a list of names. I need the rest of the page under the names with blank fields in case there are those that are not entered into the database. They would sign in by hand. Click image for larger version. 

Name:	Report.jpg 
Views:	12 
Size:	81.7 KB 
ID:	32976

  2. #17
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    One way of doing it is using a UNION query to add EMPTY rows to your report
    e.g. your report should have 30 rows but you only have 25 so add 5 empty rows at the bottom

    Or similar idea but add rows where one field is assigned a specific value e.g. #
    Then use conditional formatting to set those values the same colour as the background (white?)

    Click image for larger version. 

Name:	ReportBlankRows.PNG 
Views:	14 
Size:	13.8 KB 
ID:	32977

    Or add another field with populated rows then hide that field on your report

    HTH
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #18
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Would any of these populate only the amount of rows to fill up the page?

  4. #19
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    So did the sample db work for you? It does for me. Should be simple to adapt to your data. I imported the report and code into my db. Changed the RecordSource and textbox ControlSource. Changed the Group header. Ran the report. Get pages filled with blank lines below records. Exactly how does this not accommodate your requirement?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Yes all of those methods would work & so would the methods in the links given by June in post 5 which I hadn't looked at till now
    I've also just seen that June successfully tried the link I uploaded (but didn't try).

    So you have lots of choice - but YOU need to tell the report how many blank rows to display depending on the amount of space you have
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #21
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Yes. It worked for me. I didn't see the blank lines until now. Going to give it a shot.

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    An alternative to using line controls is to set the ForeColor property of each textbox instead of Visibility. So in the code:

    R.[ProductName].Visibility = False

    would be changed to:

    R.[ProductName].ForeColor = vbWhite
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #23
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Having a hard time with the Header. Since I don't have a CategoryID, I'm tring to change it to what is in my database, ScheduleID. Also, it looks like the only thing that is repeated, is the line. I need boxes, like the text boxes so that it looks consistent. If I have boxes and then just lines, it will not work. Yes, they have to be boxes. I didn't make the rules on it.

  9. #24
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    You can use more vertical line controls to create the effect of boxes. The sample has 2 vertical line controls (named Line4 and Line5) and one horizontal (named LineControl) - add as many as you need.

    However, I provide alternative in post 22.
    Last edited by June7; 03-10-2018 at 01:13 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #25
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I appreciate being patient with me. I think that I can use the sample to help me out. I didn't think about making boxes out of the lines. I will go that route. However, I'm having a problem with the format of the report. I'm not really familiar with reports. The sample has CategoryID Header. It had to come from the table. I need to substitute it for mine, which is ScheduleID. I don't know how to do that.

  11. #26
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Here is a tutorial article about building reports using the Grouping & Sorting designer https://support.office.com/en-us/art..._add_or_modify


    In brief: report in design view > right click on the group header > Sorting & Grouping. This opens the S&G pane at bottom of report. Click on the GroupOn dropdown that probably says 'expression' and select ScheduleID. This assumes you have already changed the report RecordSource.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #27
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Click image for larger version. 

Name:	lines.jpg 
Views:	8 
Size:	120.0 KB 
ID:	32981
    I appreciate the patience. Looks like it works perfectly. Thanks a lot.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 04-25-2016, 08:32 AM
  2. Replies: 5
    Last Post: 06-13-2013, 08:42 AM
  3. code to delete rows based of empty cells
    By jcbrackett in forum Programming
    Replies: 3
    Last Post: 03-05-2012, 02:27 PM
  4. fulfilling empty rows
    By vojinb in forum Queries
    Replies: 2
    Last Post: 07-31-2011, 01:50 PM
  5. How to get rows with empty fields as well?
    By Orabidoo in forum Queries
    Replies: 10
    Last Post: 04-24-2009, 06:08 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