Results 1 to 10 of 10
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209

    SUb Form Visual Question

    I have sub-form that displays data from query after user selects option from unbound combo box.



    My question is, how do I set it so that there is not grey on side like sub-form show extra empty "rows"

    For example, in my screenshot below there are 2 PartId that return, so I would like to only have 2 rows in the sub-form, but it seems that 11 are present due to grey on the left side (may have miscounted eyes are sleepy)

    Click image for larger version. 

Name:	snagit.PNG 
Views:	14 
Size:	3.2 KB 
ID:	47386

  2. #2
    usfarang is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2021
    Posts
    42
    If IsNull on form or IIF IsNul in query
    hth

  3. #3
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209
    Quote Originally Posted by usfarang View Post
    If IsNull on form or IIF IsNul in query
    hth
    I don't understand what you mean

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Can you upload your db so we can see the form?

  5. #5
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209
    Garbage data that illustrates what I'm experiencing.
    Attached Files Attached Files

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi Juan

    To display data from your 1 table you do not need a subform

    See the attached modified Db
    Attached Files Attached Files

  7. #7
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209
    How did you create this form?

    In my prod DB - I have a combo box where the user will select a name, and the sub-form will display auto-filtered to that one name.

    Is it possible to do this with your sample?

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    See attached example
    Attached Files Attached Files

  9. #9
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Dec 2010
    Posts
    209
    Ohhhh, that looks good.

    What if there is the potential for more than one result to be returned? Could the same set-up handle it?

    How did you set this form up?

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Just sent you a PM

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

Similar Threads

  1. Replies: 2
    Last Post: 01-15-2019, 09:14 AM
  2. Replies: 2
    Last Post: 03-17-2014, 12:51 PM
  3. Replies: 3
    Last Post: 06-28-2012, 09:36 AM
  4. Visual Basic / Acces Form differences
    By MWMike in forum Forms
    Replies: 3
    Last Post: 10-06-2010, 09:06 PM
  5. Locking form with Visual Basic
    By rev_ollie in forum Forms
    Replies: 4
    Last Post: 04-29-2010, 07:27 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