Results 1 to 6 of 6
  1. #1
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171

    Combo Box showing Blank Values

    Hello,


    I have one combo box bounded with two fields, Id and Description through a query.
    I entered a new id in bonded table but for some reason I don't want to enter description now.
    And if I delete the entered id then I will loss that unique id which is using for description, which I don't want.
    Now the problem is one blank space showing in my combo box.
    So what criteria I should use in query criteria to avoid blank spaces?
    Thanks.

  2. #2
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    ... WHERE Nz(Description,"") <> "" ...

  3. #3
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Thanks for your reply.
    I put in "Description" field criteria.
    WHERE Nz(Description,"") <> ""
    But it give Syntax error message.
    "You may have entered an operand without an operator"

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Post your SQL statement for the combo box so that we can analyze properly and not guess at an answer.

  5. #5
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Select department.deptid, department.department
    from department;

  6. #6
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    SELECT DEPARTMENT.DEPTID, DEPARTMENT.DEPARTMENT
    FROM DEPARTMENT
    WHERE Nz(DEPARTMENT,"") <> "";
    Solved Thanks.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-17-2012, 03:16 PM
  2. showing all values in query
    By dashingirish in forum Queries
    Replies: 13
    Last Post: 02-17-2012, 04:38 PM
  3. Showing zero values in a Union Query
    By coach32 in forum Queries
    Replies: 5
    Last Post: 09-06-2011, 07:46 AM
  4. Sql query not showing all the values
    By usr123 in forum Access
    Replies: 0
    Last Post: 02-24-2010, 07:32 AM
  5. Null Values not showing up in a Query
    By Valli in forum Queries
    Replies: 0
    Last Post: 01-04-2006, 03:53 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