Results 1 to 2 of 2
  1. #1
    PoorBoy is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    14

    Unhappy Passing data betwen forms listbox help

    i have form1 and form2

    With form1 still open when form2 opens:

    In the Open event of form2:
    Me.listbox2.RowSource = Form_form1.listbox1.RowSource

    when i add this code in i get "openform action was canceled"


    Code:
    Private sub Add_click()      <<< form 1
    Form_form2.list2.RowSource = Me.list1.RowSource
    DoCmd.OpenForm ..., Me.listbox1.RowSource
    Me.comboboxname.RowSource = Me.OpenArgs
    End sub
    Note: listbox1 is a table/query type
    lsitbox2 is value list type

    how do i get rid of the error "the openform action was canceled"???

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Is this your actual code and form and control names? I assume the ellipses (...) are not really in the code.

    The combobox is actually named comboboxname? Is the combobox on Form2?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2012, 11:55 PM
  2. passing openArg to a listbox on other form
    By focosi in forum Access
    Replies: 7
    Last Post: 08-12-2011, 04:27 PM
  3. Passing data between forms
    By injanib in forum Forms
    Replies: 2
    Last Post: 07-01-2011, 09:36 AM
  4. Passing Data Between Forms
    By exeTrix in forum Programming
    Replies: 3
    Last Post: 04-05-2011, 01:06 PM
  5. Replies: 1
    Last Post: 03-24-2010, 08:42 AM

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