Results 1 to 2 of 2
  1. #1
    cptkirkh is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Posts
    1

    MS access only show box if data


    I have a MS access report that has multiple data fields. I know how to get the box to not show if there is no data by using an event and the code visible.
    Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    If Len(Nz(Me.YourField)) > 0 Then
    Me.Label1.Visible = True


    Else
    Me.Label1.Visible = False
    End If
    End Sub

    My issue i have 8 text boxes that represent different columns in my table. If they are blank i want to suppress them and then move up the lower boxes if they have data. Basically shrink the whitepace. Is there a way or will i have to code it and move up boxes that way? Thanks.

    • Me.Control.Left = #
    • Me.Control.Top = #




  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is the Detail section set to "Can Shrink"?

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

Similar Threads

  1. Replies: 2
    Last Post: 05-11-2017, 10:50 AM
  2. Replies: 1
    Last Post: 06-28-2016, 06:43 AM
  3. Replies: 1
    Last Post: 03-01-2016, 06:05 AM
  4. Update Data (11gxe w/ sqlplus) Does Not Show in ODBC (MS Access 07)
    By ianclark2992 in forum Import/Export Data
    Replies: 1
    Last Post: 10-20-2013, 04:41 PM
  5. How to show data in Access Form
    By riaarora in forum Access
    Replies: 5
    Last Post: 08-22-2012, 07:25 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