Results 1 to 3 of 3
  1. #1
    DavidMcArthur is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2016
    Posts
    18

    From Table to Form

    Hello

    Im sorry in advance if this has been posted and answered somewhere else on the forum.



    I have a table with plant that has broken down (based on a query where one of the categories from a drop down box is "Needed Repaired"). So this shows me all the plant that is broken. I would like to have a hyperlink from each of the rows that when you click on it then it will open a form with all that specific information for the repair guy to complete the rest of the information, change the Needing Repaired drop down to Fixed then the item wont show up in the table again.

    Does this make sense?

    I hope so. Its bugging me because i dont know how to do it. It may be the simplest thing but with your expertise I'm sure i'll understand in no time!!!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,413
    you shouldn't need a hyperlink, just the following code

    docmd.openform "nameofrepairinfoform",,,"PlantPK=" & me.PlantPK

    change names of nameofrepairinfoform and PlantPK to the name of your form and the name of the primary key you are using

    where you put it depends on your form design - common locations are in the onclick event of a button or a control which displays a name (such as your plant name)

  3. #3
    DavidMcArthur is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2016
    Posts
    18
    Thank you! That was perfect. Its so easy to do... when you know the right code!

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

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2016, 09:07 AM
  2. Replies: 6
    Last Post: 12-13-2014, 09:20 PM
  3. Replies: 1
    Last Post: 07-01-2014, 01:41 PM
  4. Replies: 2
    Last Post: 10-07-2013, 11:01 AM
  5. Replies: 2
    Last Post: 08-01-2011, 11:35 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