Results 1 to 4 of 4
  1. #1
    ssashraf is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2012
    Posts
    9

    Combobox Dropdown Problem

    Hi, I have 2 issues on my form

    1. When ever the combobox got focus it dropdowns automatically although I've given "me.combo1.bropdown" in KeyPress event.
    2. How can I set the focus on the same textbox untill & unless the condition is satisfied (I am trying to check the Quantity in "afterupdate" event for a textbox)

    Please help me.

    SSA

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    1. I use Dropdown method in the GotFocus event for combobox. Why do you have it in KeyPress?

    2. Are you using ValidationRule property?
    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
    ssashraf is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2012
    Posts
    9
    Thanks for the reply,
    1. I am using dropdown in Keypress because whenever I press the alpha or numeric key it should drop down, If I use GotFocus then it will Dropdown which I don't want because it consist of number of items. If there is a way to get it done in GotFocus and if I press "A" then it will DropDown and gives the values for "A" that will be great for me please advise.
    2. I tried using "<[Forms]![Sales Invoice]![TxtStock]" in validation rules but not working.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    1. Still don't understand. The AutoExpand property will cause the combobox row pointer to show first row that matches the input as you type in the combobox. Have the combobox RowSource query sort alphabetically.

    2. don't know your db so no idea why that isn't working nor if it should
    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.

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

Similar Threads

  1. Problem with ComboBox
    By cheyanne in forum Forms
    Replies: 3
    Last Post: 06-05-2012, 05:06 PM
  2. Problem filling textboxes from combobox
    By reidn in forum Forms
    Replies: 1
    Last Post: 06-23-2011, 05:06 PM
  3. Sorting by combobox problem
    By wsurritte in forum Access
    Replies: 11
    Last Post: 02-28-2011, 02:11 PM
  4. combobox.dropdown event not working after error
    By perlyman in forum Programming
    Replies: 1
    Last Post: 04-02-2010, 06:55 PM
  5. Combobox problem
    By newitsupport in forum Access
    Replies: 1
    Last Post: 09-26-2009, 01:03 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