Results 1 to 13 of 13
  1. #1
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20

    How to launch new form from a filtered list selection

    Hi all,

    I was able to create a DB that filters all the fire extinguisher labels of a three campus area based on cascading combo boxes that drill down to County/Campus/Building/Floor/Section.

    I want to be able to click on an FE label from the filtered list and cause another form to open that will allow me to enter meta data about that particular fire extinguisher/label, i.e is it up-to-date, sitting on the floor or on the wall, is the label correct, etc.

    I'd also like to mark each selection in the filtered list as complete after filling out the meta data form so I know which FE's are remaining to be audited.



    How do I do that?

    Thanks in advance,
    Dangerous Newbie
    Attached Thumbnails Attached Thumbnails 3-25-2014 1-26-17 PM.jpg  
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You mean open a form filtered to that record?

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    Sort of.

    My goal is to be able to audit the condition of many fire extinguishers (FE's) for many buildings.

    I start by filtering the entire list of FE's based on the location I'm at, i.e. which campus/building/floor/floor section etc.

    Once I have that filtered list, I need to collect field data, one at a time, for each of those FE's listed on my filtered list.

    Hope that makes it more clear.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    How does the link not accomplish what you want?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    My limited understanding is that your link indicates opening a record and viewing its data on a second form. It doesn't seem like the results from my filtered list are actual records, but just query results with no corresponding data to view.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I assume that the results of your filtered lists provides the key value (the fire extinguisher) that would enable you to open a form based on the fire extinguisher table to the selected extinguisher.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    I'm just not sure how to access the result(s) from the list.

    Can I just double-click one of the filtered results from the first form and have a new form open that will allow me to add data to the record?

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Presuming you have it set up, replacing ControlName in the code from the link:

    Me.ControlName

    with the name of your listbox should pass the fire extiguisher to filter the second form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    Where do I put the code? I can't find a property sheet for the filtered list.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Based on your sample, it's a listbox named "lstLabelID". Clicking or double clicking on it should open the properties window for it. I'd either use the click or double click event for the code, depending on your preference.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    Thanks Paul! I'm getting an error, but it still works!
    Attached Thumbnails Attached Thumbnails 3-26-2014 5-35-07 PM.jpg   3-26-2014 5-33-54 PM.jpg  

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I would expect that code in the click or double click event of the listbox. It appears you have that in the load event of the form being opened, so that reference to the listbox is invalid. You say it works, but I wonder if the form is displaying all records.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #13
    karmadog is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    20
    I removed the code from the load form event, and now it works without the error. All I have to do (hopefully) is add the metadata fields to the second form to populate the record for each fire extinguisher.

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

Similar Threads

  1. Filtered Report from filtered datasheet form
    By gemadan96 in forum Reports
    Replies: 7
    Last Post: 01-03-2014, 05:12 PM
  2. Replies: 2
    Last Post: 06-09-2012, 07:59 AM
  3. Open a report based on a filtered list box
    By irish634 in forum Access
    Replies: 5
    Last Post: 02-07-2012, 08:10 AM
  4. Form Launch Problem
    By paddon in forum Programming
    Replies: 10
    Last Post: 12-18-2010, 04:18 PM
  5. HOW DO I: Add or Launch Report from a Form?
    By ba1959nh in forum Forms
    Replies: 2
    Last Post: 09-25-2006, 04:33 PM

Tags for this Thread

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