Results 1 to 6 of 6
  1. #1
    Finser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    18

    Lightbulb Link the link on the from to the record your are looking at

    Hallo,



    i have created a form which gives you a direct overview of every data in the database from one animal. all the forms are nested in ech other, 3 layers of nesting. an overall form, an indivdual form nested in that and details form nested in the individuals form. but now i want to create links on the details forms, which links to even more details forms, but i want ofcourse the same individual displayed as where i was on the nested detail form, how do i do this. i already have a hyperlink?

    can anyone help me
    thanks

    Finser

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Each of these forms is based on a different table?

    I use the WHERE CONDITION argument of OpenForm:

    DoCmd.OpenForm "formname", , , "ID=" & Me.ID
    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.

  3. #3
    Finser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    18
    yes each form is based on a different table.

    sorry i am a bite new in access, but this where condition should i type this in the visual basic window? and so yes, in the window of the form where the hyperlinks are?

    thanks, Finser

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Place that code in whatever event VBA procedure you want to execute it such as a button or textbox Click.

    Not sure what you mean by 'hyperlinks' - hyperlinks to what? Is this just a textbox formatted to look like a hyperlink? Is this an unbound textbox?
    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.

  5. #5
    Finser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    18
    Hi june7,

    I used the Hyperlink button in the design tab to create this.
    this creates a hyperlink to a another form.
    like the hyperlink button that is in this quick reply box.
    a globe with a cable.

    finser

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    That is just a little wizard that creates a label control with hyperlink properties. To use the code I suggest, can't set the HyperlinkSubAddress property. Seems there used to be DisplayAsHyperlink property but am not seeing that with 2010. You can make the caption appear as a hyperlink with FontUnderline and ForeColor properties.

    If you really want to use HyperlinkSubAddress property to open form, have to use another method to filter the report. The only options I can see would be a parameterized query as RecordSource or the Filter property of form. Both would reference the subform field to pull the filter criteria.
    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: 7
    Last Post: 08-28-2013, 02:30 AM
  2. Link from report to record form
    By John2360 in forum Access
    Replies: 8
    Last Post: 08-13-2013, 01:29 PM
  3. Open Form and Link To Specific Record
    By burrina in forum Forms
    Replies: 2
    Last Post: 12-17-2012, 11:09 PM
  4. Replies: 1
    Last Post: 07-26-2011, 05:18 PM
  5. Link a report to a record
    By prv in forum Reports
    Replies: 2
    Last Post: 12-14-2010, 12:45 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