Results 1 to 4 of 4
  1. #1
    ketangarg86 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    24

    Form Yes/No combobox


    Hi,

    I have a combo box that retrieves values from a table column. The values could be blank, yes, or no. Now the combo box displays the yes/no values in the dropdown but when I select "No", it fills the combo box with 0 and "Yes" fills it with -1. The query and everything runs good. Is there a way I can displya Yes/No instead of -1/0 to the user of the form.

    Thanks a lot for your help.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    In the combo format, chg to: yes/No

  3. #3
    ketangarg86 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    24
    Yes, I tried that but then the blank values are also treated as a "No". The column in the table could have blank, yes, or no values..

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Blanks SHOULD be treated as NULL but emptyset "" could be interpreted as no.
    You may have to force the issue in the list ,before you run the query set the combo to NULL if cbo ="". or len(cbo) = 0

    BUT your table could have a default value = 0. Make sure is dont, else all nulls will = 0.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-24-2014, 09:08 AM
  2. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  3. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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