Results 1 to 3 of 3

Thread: Combo (A2000)

  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combo (A2000)

    I have a combo on a form which is a look-up.
    I want this combo to dropdown if it contains no data.
    eg

    On Got Focus
    If isnull then me.combo?.dropdown
    Else
    Dont Dropdown.

    I'm sure some-one knows how to do this.

    Thanks in advance
    Dave

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Combo (A2000)

    You're almost there:

    Private Sub cboSomething_GotFocus()
    If IsNull([cboSomething]) Then
    [cboSomething].Dropdown
    End If
    End Sub

  3. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Combo (A2000)

    Perfect Hans
    Thanks.
    p.s Send my warmest regards to Mrs Hans

    Dave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •