Results 1 to 11 of 11
  1. #1
    rdr910 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    9

    Hide Null Values in Report

    I have created a report that can list up to 10 different phone numbers per business. Some of the businesses due have 10 phone numbers and some others might only have one or two. That looks really funky when printing. I would like the report not to show the TAG or TEXT BOX if the value is NULL and shift the rows below that would have a phone number UP.



    I have already tried the CAN SHRINK property and set to YES. This is not working

    Can someone please help!

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I can't remember if a list box would work, otherwise try a subreport.

  3. #3
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    how are the phone numbers stored in the table?

  4. #4
    rdr910 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    9
    The numbers are broken down into different fields. I have a field for Daytime Phone, Nighttime phone, Secondary, Cell1, Cell2, Cell3, Cell4, Home Phone, Pager, Fax, Backup, Speed dial.

    Click image for larger version. 

Name:	12.JPG 
Views:	19 
Size:	34.9 KB 
ID:	6661 This is was the report looks like

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    One text box populated in VBA with labels and values when not null.

  6. #6
    rdr910 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Click image for larger version. 

Name:	untitled.JPG 
Views:	13 
Size:	6.7 KB 
ID:	6698I created a subreport for this and populated the label textbox with code. The code works! I did the CanShrink and CanGrow properties. When i go to run the report, everything works, but the labels will appear one row beneath where it should. It is not appearing next to the phone number it should. This is the way it is appearing below

  7. #7
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I'm not too sure what you did to get this. Can you attach this part of your database?

  8. #8
    rdr910 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    9
    sorry it actually looks like this. The phone numbers will rise upwards, while the labels go downwards.
    Click image for larger version. 

Name:	untitled.JPG 
Views:	12 
Size:	6.3 KB 
ID:	6700

  9. #9
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You need to string them together so that they are on the same line.

  10. #10
    rdr910 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    9
    What do you mean by string them together?

  11. #11
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Like I say, I'm not sure how you are creating this. However, a string would be something like "Phone Number: '" & [Phonenumber] & "'" - you put different things together using the & to make up a string (a line of text).

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

Similar Threads

  1. Finding the Max Date and Null Values if Null
    By SpdRacerX in forum Queries
    Replies: 1
    Last Post: 02-03-2012, 06:29 AM
  2. Hide Null field Line
    By brobb56 in forum Access
    Replies: 1
    Last Post: 09-26-2011, 11:02 AM
  3. Hide Fields With Null Values
    By jay in forum Reports
    Replies: 6
    Last Post: 09-22-2011, 07:23 AM
  4. Hide subreports when null
    By dssrun in forum Programming
    Replies: 5
    Last Post: 06-21-2011, 11:41 AM
  5. Replies: 5
    Last Post: 08-24-2010, 02:32 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