Results 1 to 5 of 5
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Avoiding blank choices in a Combo Box

    What is the option is Combo Box queries that does not permit a blank space as a choice/ Right now I am getting a drop menu on the combo box and at the top of all the names



    is simply a blank white space. How can turn that off an just get only choices? No blanks.


    Respectfully,


    Lou Reed

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    That is caused by a blank record in source. Add filter criteria to the RowSource sql: Not [fieldname] Is Null.
    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.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    This statement " RowSource sql: Not [fieldname] Is Null " goes in the record source for the form that has the combo box control?

    I just need to know where to put it.

    Respectfully,


    Lou Reed

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    It would be filter criteria (WHERE clause) in the SQL statement or query used by the RowSource. What is currently referenced in the RowSource property? Post the SQL statement if you need more help.

    Otherwise, don't allow 'blanks', make the field Required in table design so there is always a value.
    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. #5
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, I will put it there. Thanks for your help.

    Respectfully,

    Lou Reed

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

Similar Threads

  1. Multi Column Combo Box choices set in VBA
    By RayMilhon in forum Programming
    Replies: 4
    Last Post: 05-19-2016, 10:35 AM
  2. Replies: 1
    Last Post: 04-27-2015, 10:53 AM
  3. Dynamic Combo choices for years
    By ptenhet in forum Forms
    Replies: 2
    Last Post: 02-17-2015, 06:08 PM
  4. Replies: 1
    Last Post: 05-25-2011, 08:37 AM
  5. Query to Limit Combo Box Choices
    By jimrockford in forum Queries
    Replies: 2
    Last Post: 04-23-2011, 10:24 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