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

    Access97 Listbox Control

    I am trying to add records from an Access Table into a listbox. Unfortunately, I am maintaining a form which was developed in Access. The Listbox control in access does not support the AddItem Method. Any suggestions on how I might add records to this Access97 listbox (without using the wizard)?

    Thanks

    -Aaron


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

    Re: Access97 Listbox Control

    All you do is Create a Semi-Colon Delimited String on Items and Assign it the the RowSource Property, making sure the RowSourceType Property is set to "Value List", eg.

    List1.RowSourceType = "Value List"
    List1.RowSource = "Item1;Item2;Item3;"




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

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