Results 1 to 5 of 5
  1. #1
    kyle91202 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2016
    Posts
    3

    Open specific form based on data in a column from a continuous form


    I have a continuous form in Ms Access and I would like to click on a row of data and open a specific entry form based on data in a column. For example I have a column called fruits and and I would like to click on a specific fruit name (pear) and the entry form for Pear opens. If the column is "apple" the apple entry form opens and so on....

    Thank you so much.

    Kyle

  2. #2
    kyle91202 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2016
    Posts
    3
    Oh there are only 10 different entry forms.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Why all the forms? If you have different tables for each fruit, that's generally a design problem:

    Fundamentals of Relational Database Design -- r937.com

    What you describe is possible, but unusual.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    kyle91202 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2016
    Posts
    3
    My project is medical chart abstraction. I want the nurse to be able to search in a continuous form on the patient and if member is required for breast cancer screening the breast cancer screening form pops up for the nurse to abstract the data from the charts. If member needs cervical cancer screening the nurse would click on the row and the cervical cancer entry form will pop up and nurse would abstract the data into the form. There are 10 different types of preventive measures for abstraction. I hope this makes sense. Thanks

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Well, you've substituted medical tests for fruits, but not addressed why the need for different tables/forms. Presuming the data is different enough to justify it, you'd somehow have to associate the value on the form with the name of the form to be opened. One way would be a combo box that showed the name of the test to the user but in a hidden column contained the name of the form. In that instance:

    DoCmd.OpenForm Me.ComboName.Column(x)

    where x is the zero-based column containing the form name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 02-06-2016, 05:30 AM
  2. Replies: 1
    Last Post: 10-10-2013, 01:52 PM
  3. Replies: 4
    Last Post: 04-20-2013, 10:12 AM
  4. Replies: 1
    Last Post: 05-31-2012, 01:01 PM
  5. Replies: 2
    Last Post: 08-11-2011, 10:02 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