CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Posts
    78

    Combo Box in Acess97

    Hi
    I'm not familiar with VBA, could u pls tell me
    whether COmbo Box in ACCESS 97 has the property of SelectedItem ? Coz I can't trace the item selected by the user after clicking the Combo Box.


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Combo Box in Acess97

    It doesn't have the Selected Property, but, the Item Selected will held in the Text Property and the Index Number of the Item can be taken from the ListIndex Property for accessing ItemData, eg.

    private Sub Combo0_Click()
    Text1 = "List Index " & Combo1.ListIndex & " - " & Combo1
    End Sub





    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  3. #3
    Join Date
    Jun 1999
    Posts
    78

    Re: Combo Box in Acess97

    Hi
    Thanx for ur answer, I just came across a method,
    [Combo].itemdata(listindex) can serve that purpose. Anyway, thanks





Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured