Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Location
    SLC, UT
    Posts
    2

    Simple Question - Combo Box Default Text


    Hello,

    This is my first post here. I am relatively new to Access and have to admit I have been finding it a little quirky and have been facing difficulties finding simple information in Microsoft's help files...

    Right now I am trying to have my combo boxes in a form display simple user prompts such as "Select a product type..." I would like these prompts to disappear once the user clicks on the combo box to make a selectrion.

    How do I go about doing this? I'd rather not add the prompt text as a value in the combo box list (don't want the prompt text showing up in my DB), but I cannot find another way to do it!

    I feel like this should be something simple but I haven't been able to figure it out for days.

    Please help!

    Thanks,

    Andy

  2. #2
    Jamy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    36
    Add an event procedure with the event on got focus.

    In VBA type this:
    me.[field name] = ""

    It's that simple. However this means that everytime the field is selected it clears. You can solve this by changing the code to:
    If me.[field name] = "your default text" then
    me.[field name] = ""
    End If

  3. #3
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    Hello SayIt

    If I am understanding you correctly you want a drop down on the form with text next to the drop down that says "Select a product Type". You want this message to dissapear after the user makes the selections because you do not want this message stored in your database. Or is it the users selection(product type) that you do not want stored.

    1) If it is the message then you will be fine. Text on a form is not stored in the DB.
    2) If it is the selection chosen then the question would be one of two.
    a) Do you want the selection made stored, or
    b) Do you want a record on the form selected based on the value chosen from the drop down?

  4. #4
    Join Date
    Feb 2010
    Location
    SLC, UT
    Posts
    2
    Jamy and jbarrum,

    Thank you so much for your thoughts! Jamy it looks like you are on the right track with what I am trying to do. I will give your suggestion a try and let you know if it works.

    Thank you!!

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

Similar Threads

  1. Simple question
    By KenM in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:32 PM
  2. Simple question?
    By roads.zx in forum Access
    Replies: 0
    Last Post: 10-15-2009, 04:56 PM
  3. Simple combo box question
    By laqa in forum Queries
    Replies: 9
    Last Post: 08-03-2009, 08:32 AM
  4. Very simple question!
    By fiddley in forum Programming
    Replies: 2
    Last Post: 04-28-2009, 02:16 AM
  5. Default Value Question
    By ulia in forum Database Design
    Replies: 2
    Last Post: 11-22-2006, 02:37 PM

Tags for this Thread

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