Results 1 to 6 of 6
  1. #1
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

    Default Value in Combo Box Not Visible


    In a form, I have a combo box that is has two values. "Vendor Claim" and "Carrier Claim". The user would like this combo to reflect a default value of "Vendor Claim." In the properties for the combo box, I have typed: ="Vendor Claim". However, the combo box remains blank. The underlying table has two fields. ID and Description. The Combo box is bound to the first field (ID) and the widths are set to 0";1". I have done a compact and repair. I have removed the combo box from the form in case it was corrupted and rebuilt the combo box. Same issue. It is really baffling me. Your thoughts on this??

    Alan

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if the ID is the bound column wouldn't the default value be the PK of the "Vendor Claim" value and not the text itself?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    The = sign is not needed. Want to save ID or Description to the record? If saving ID, set the DefaultValue to the appropriate ID value (maybe 1 or 2).
    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.

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Thanks June and Rpeare. Changed the default to the ID value and Vendor Claim now appears as the default.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Personally, I would just save the values "Vendor" or "Carrier" in text field and avoid the issues with lookup alias.
    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.

  6. #6
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    June, I get it, but there is an underlying factor. The claim field actual begins with VC or LD followed by numbers. The criteria in the query then uses a Like statement to get the proper results. But it is working as designed and thanks for marking it "solved"

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

Similar Threads

  1. Refresh default value for combo box
    By dmunsch in forum Programming
    Replies: 14
    Last Post: 03-18-2013, 12:35 PM
  2. Visible text boxes when combo box choice selected
    By nichmeg in forum Programming
    Replies: 3
    Last Post: 10-16-2011, 02:53 PM
  3. Replies: 11
    Last Post: 06-30-2011, 11:12 PM
  4. Replies: 2
    Last Post: 01-06-2011, 04:38 AM
  5. Combo Boxes Visible/Invisible
    By Rick West in forum Forms
    Replies: 2
    Last Post: 07-06-2010, 09:41 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