Results 1 to 5 of 5

Thread: [Resolved] Access VBA - Listbox Additem equivalent

  1. #1

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    [Resolved] Access VBA - Listbox Additem equivalent

    Hi Guys,


    I'm trying to add table data from the current M$ Access recordset
    into a (VBA) ListBox.


    Can't figure out the syntax tho.
    Eg: What is the VBA ListBox equivalent of (ListBox) .AddItem?



    Regards,
    Bruce.
    Last edited by Bruce Fox; Feb 3rd, 2003 at 04:33 PM.

  2. #2
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    create a string, sItems (semicolon delimited, I think)
    then
    List1.RowSource = sItems
    Last edited by ralph; Feb 3rd, 2003 at 04:22 PM.
    VB 6.0, Access, Sql server, Asp

  3. #3
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    Just make sure you've changed the listbox RowSourceType to value list first..

    Erin

  4. #4

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    I'll give it a go......

  5. #5

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Thanks guys, that worked



    Bruce.

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