Results 1 to 7 of 7
  1. #1
    Lincoln is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21

    How to set Combo default view to custom text?

    When the form is opened all my combo boxes are blank to start with.

    I dont want the default set to blank or any of the combo options once opened. I want to be able to show either COLUMN HEADS or custom text.



    Is this possible?
    Last edited by Lincoln; 07-15-2011 at 09:14 PM. Reason: put in question mark - I am needing answers

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    If these comboboxes are bound to field of RecordSource, then having the box show anything means value is entered into the field. Is this what you want?
    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
    Lincoln is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21
    no sorry - the comboboxes are linked to the correct source and the correct selection of choices are available.

    When I open the form however all the boxes show blank - I want to have titles showing.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    You can set ColumnHeads property to yes and field names will show in the droplist but not in the box. The only thing that can show in combobox is the value from the bound field or its lookup value. Configure label above combobox to appear as column heads.

    If data is not showing in bound combobox when data is in table, something is wrong.
    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
    Lincoln is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21
    So what you are saying it cant be done?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    As I understand what you want and the nature of comboboxes.
    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.

  7. #7
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by Lincoln View Post
    So what you are saying it cant be done?
    As June7 said, you can't do what you want exactly. But you can make it LOOK like you are doing what you want.

    1. Place a text box over the top of the combo but not obscuring the arrow for the selecting.

    2. Put the words you want into the text box's control source like ="SomethingHere"

    3. In the click event of the text box, set focus on the combo and drop down the combo:
    Code:
    Me.ComboNameHere.SetFocus
    Me.ComboNameHere.DropDown
    Me.txtTextBoxNameHere.Visible = False
    4. You will want to set the text box .Visible property to False, also in the click event of the combo box so that if they click the arrow for the combo to drop down, it will also hide the text box.


    5. So play with it and see if you can get it working the way you want.

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

Similar Threads

  1. Query default to Pivot Table view
    By Theremin_Ohio in forum Access
    Replies: 1
    Last Post: 03-30-2011, 09:17 AM
  2. Replies: 3
    Last Post: 02-22-2011, 04:50 PM
  3. Replies: 0
    Last Post: 01-27-2011, 09:58 AM
  4. Custom messages to Access' default error messages.
    By evander in forum Programming
    Replies: 1
    Last Post: 06-26-2010, 02:06 AM
  5. Simple Question - Combo Box Default Text
    By sayitgreen in forum Forms
    Replies: 3
    Last Post: 02-20-2010, 12:59 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