Results 1 to 9 of 9
  1. #1
    John2360 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    2

    Link from report to record form


    Hello everyone, I am a new access user and have started to create a database for my work. The purpose of my database is to track products coming in for repair. I have designed a form to inputting data and have created a query to look for outstanding repairs which brings up a report, what I would like to do is have a link from my report to the record of the current repair, for example I have my report up with my repairs on and when I click on one of the repairs numbers it takes me to my data input form for that repair. Is this possible? I am not the best with code thanks, John

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Instead of report, why not open a form of the outstanding repairs? Pick one and edit right there. I've never used a report to open a form for a specific record. Not sure can even be done. Reports don't have a record selector. Reports are intended for output, not to be interactive.
    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
    John2360 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    2
    Thanks for the reply June7, I'm not too sure how I would do that. Do I need to create another form?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Don't know. What is the form you already have? Might need a form/subform arrangement. Or just build filter capability into the existing form. Review http://datapigtechnologies.com/flash...tomfilter.html

    If you want to provide your db for analysis, follow instructions at bottom of my post.
    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
    richimo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    1

    Problem solving - Very slowly!

    Quote Originally Posted by John2360 View Post
    Hello everyone, I am a new access user and have started to create a database for my work. The purpose of my database is to track products coming in for repair. I have designed a form to inputting data and have created a query to look for outstanding repairs which brings up a report, what I would like to do is have a link from my report to the record of the current repair, for example I have my report up with my repairs on and when I click on one of the repairs numbers it takes me to my data input form for that repair. Is this possible? I am not the best with code thanks, John
    I've asked this same question in a few different places - Most common answer = 'It can't be done, reports aren't interactive'. Someone turned me on to an option though, using a little VBA. Make a field 'Enabled' in the properties section, and link it to the form. My current problem is in the VBA I think. When I click the 'record number' I've made active, it brings up the form, but it's not on the right record number, just defaults to the first record. I'm making progress, but I'm not there yet. But I think I've gone far enough to be able to say 'it might be possible, don't give up yet'. I'll pass along any new info I find!

    http://www.reddit.com/r/MSAccess/com...pen_up_a_form/

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Reports in Report view are interactive; Preview and Print are not. I'd use this to bring up the record:

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

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    As Paul said, in Report view reports can be somewhat interactive. Buttons will work. I did a little test. Button in report header with code to Debug.Print ID of record. It always output ID of first record no matter where I placed the cursor.
    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.

  8. #8
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    The button or textbox would need to be in the detail section to work correctly.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    AhHah, that does sound familiar. Think I have tested that before but just did again to verify. The button will display with each record and use the ID of the record the instance of button is associated with.
    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. Report items link to form
    By pinky33 in forum Reports
    Replies: 2
    Last Post: 04-25-2012, 11:23 AM
  2. Link from one report to another
    By jsimard in forum Reports
    Replies: 2
    Last Post: 02-29-2012, 09:14 AM
  3. Link Report to Form
    By BorisGomel in forum Access
    Replies: 2
    Last Post: 01-30-2012, 08:51 AM
  4. Link a report to a record
    By prv in forum Reports
    Replies: 2
    Last Post: 12-14-2010, 12:45 PM
  5. Load Record from report in form
    By rdirosato in forum Reports
    Replies: 13
    Last Post: 03-08-2010, 10: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