Results 1 to 2 of 2
  1. #1
    pm4698 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5

    Passing listbox's values to other form's combobox

    I have a form(frm2), in which i use a listbox(list1). The listbox is blank and it takes values from ather text boxes and comboboxes through vba code.

    All i want, is when i push a button, to move the listbox values to a blank table tbl1.
    In another form (frm2), i am going to use a combobox, which must have as rowsource the tbl1 content.
    So, i want when the user fills in the listbox (through comboboxes and textboxes), the values of the listbox to pass as a rowsource to another form's combobox.

    How could i do this?

    Thanks in advance

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    well - it sounds like you are populating that list box via a text string entirely within the form & listbox control

    fundamentally to fill in data to a table; make an AppendQuery to that blank table tbl1 - and trigger it with the OnClick event of the command button....

    but you may have some tricky text/field set up in the vb of that sql statement

    what you are trying to do is a bit non-standard; it is more straight forward to add data to a table by having the form sourced on the table and simply adding a new record.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Passing specific Combobox info to a query
    By pwdpwd in forum Queries
    Replies: 1
    Last Post: 02-09-2010, 12:53 PM
  2. Replies: 0
    Last Post: 12-16-2009, 01:14 PM
  3. using form's control as criteria in a query
    By brandonb in forum Access
    Replies: 0
    Last Post: 06-09-2009, 02:52 PM
  4. Replies: 3
    Last Post: 06-02-2009, 09:51 AM
  5. Passing Values
    By dromorkid in forum Forms
    Replies: 0
    Last Post: 11-25-2008, 05:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums