Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    2

    Multiple Listboxes


    Hi,

    I have a form with several listboxes. i would like to select a row from any of the listbox and edit the details via a button which will open a form. How do u go about doing this?

  2. #2
    Join Date
    Feb 2009
    Posts
    16
    Create a bound form based on the underlying table with the appropriate fields.

    In your Button's OnClick event add the line:
    DoCmd.OpenForm ("frmYourNewForm",,Me.Yourlistbox)

    This should use the WHERE function in the OpenForm command to limit your result to only that record. I am assuming that the first column in your list box contains the primary key.

    Sometimes my syntax is off as I don't do this all the time. Double check the syntax of OpenForm.

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

Similar Threads

  1. Listboxes in Reports
    By bonekrusher in forum Reports
    Replies: 1
    Last Post: 09-21-2006, 01:46 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