Results 1 to 2 of 2
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    after running this code, I want the combobox dropdown deployed

    after running this code, I want the combo-box control's dropdown deployed (without any further action from the user), but it does not... suggestions on what I ought to be doing instead would be greatly appreciated in advance (also striking out any lines that are unnecessary).

    [CODE][
    Private Sub cmbInstallationNoteTitle_click()
    Select Case Me.cmbInstallationNoteTitle
    Case Is = "0"
    Me.cmbInstallationNoteTitle.RowSource = _
    "SELECT OptInstallationNotes.InstallationNoteTitle, OptInstallationNotes.optionNumber, OptInstallationNotes.Options From OptInstallationNotes ORDER BY
    OptInstallationNotes.InstallationNoteTitle, OptInstallationNotes.[InstallationNoteTitle]; "
    Me.cmbInstallationNoteTitle.Requery
    Me.cmbInstallationNoteTitle.AutoExpand = True
    Me.cmbInstallationNoteTitle.Dropdown
    Me.cmbInstallationNoteTitle.SetFocus
    vInstallationNoteTitle = Me.cmbInstallationNoteTitle
    If Len(Nz(vInstallationNoteTitle)) > 0 Then
    vstr = DLookup("[options]", "optInstallationNotes", _


    "[OptionNumber] = " & Me.cmbInstallationNoteTitle)
    Me.txtNoteText = vstr
    ' <other lines of code>
    Else
    ' <other lines of code>
    End If
    End Select
    End Sub/CODE]

    Thnx,
    mark

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Set focus to the combobox first.

    Might want to put dropdown code in the combobox GotFocus event.
    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. Replies: 1
    Last Post: 08-16-2017, 11:34 AM
  2. Deleting Combobox/Dropdown Menu Items
    By tanyalee123 in forum Access
    Replies: 2
    Last Post: 02-27-2015, 11:42 AM
  3. ComboBox with input mask to display dropdown
    By wetsnow13 in forum Forms
    Replies: 2
    Last Post: 06-10-2013, 05:59 AM
  4. Combobox Dropdown Problem
    By ssashraf in forum Access
    Replies: 3
    Last Post: 12-08-2012, 11:36 PM
  5. combobox.dropdown event not working after error
    By perlyman in forum Programming
    Replies: 1
    Last Post: 04-02-2010, 06:55 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