Results 1 to 3 of 3
  1. #1
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176

    ComboBox, select null?

    I have comboboxes, depending on the user they might want to be left blank. When I click to look through them I can no longer leave them black.



    I went back to the table that has what the combo box shows and inserted <N/A>

    So for criteria, I tried (just using names since with nav forms the names are super long)
    IIF(Combo<>"<N/A>", Like "*" & Combo & "*", "*")

    But I get no records when I run the query

    Suggestions? Are there other ways of doing this?
    Last edited by offie; 07-19-2013 at 06:28 AM.

  2. #2
    MrSmith is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    3
    I use Access 2007 so this might not be the case in 2010, but you should be able to backspace out of any selection in a combo box leaving it blank.

    For a date range in which I want to allow for blanks:

    >=[Forms]![Start Form]![Text85] And (<=[Forms]![Start Form]![Text88] Or Like IIf(IsNull([Forms]![Start Form]![Text88]),"*",[Forms]![Start Form]![Text88]))

    In this scenario a date must be entered into Text85, but if Text88 is left empty it will return all information after the first date. This could be adjusted to allow for the first date to be blank as well if needed.

  3. #3
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    Thanks! Just what I needed, didn't know about the backspace, silly me.

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

Similar Threads

  1. Use combobox to select form to open
    By gemadan96 in forum Forms
    Replies: 11
    Last Post: 11-15-2012, 01:42 PM
  2. Replies: 1
    Last Post: 08-31-2012, 01:56 PM
  3. Form ComboBox Filter - Select ALL records
    By jhrBanker in forum Forms
    Replies: 2
    Last Post: 08-02-2012, 08:57 AM
  4. Set value of bound combobox to NULL
    By Kotoca in forum Forms
    Replies: 1
    Last Post: 06-30-2012, 02:27 PM
  5. How to select ComboBox list in Run time
    By sdondeti in forum Forms
    Replies: 2
    Last Post: 06-20-2011, 10:21 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