Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2006
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Items selected (Access 2000)

    I need help to make a list box with selected items.I have copied an example from a book,but i somehow botched it and cannot get the results.In short, i want to collect into the blank list box ListCurrent those items that i have clicked on the listbox "List Not selected".For this purpose i use the command buttons include and exlude.But by clicking the include, the seletced items are not included.Could you help me make this example work ?

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

    Re: Items selected (Access 2000)

    You have forgotten to set the Row Source of ListCurrent to the CurrentcCstomers table.
    Moreover, you only insert CustomerID into CurrentCustomers; you should insert the entire record. In cmdInclude_Click:

    SQL1 = "INSERT INTO currentcustomers " _
    & "SELECT * FROM customers where customerid = " _
    & Me![list].ItemData(varitm)

  3. #3
    Lounger
    Join Date
    Jan 2006
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Items selected (Access 2000)

    Thank you so much for your help.
    In order to make up my mind as to the form i will use, i have another question about the selected items, i think however that i should send it under another main thread.

    regards

Posting Permissions

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