Results 1 to 7 of 7
  1. #1
    RapidRepairArnold is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Kalamazoo/Battle Creek, MI
    Posts
    7

    Open a form based on a link in Subreport

    So I have built a Navigation form that shows all our products through a Subreport. One of the things I would like to have is for the end user to be able to click a link and have a popup show with the detailed information on that record. I have everything set and all is working well except that the link will not work when I go through the navigation form (I get the "Enter Paramaeter Value" prompt)....but it works when I am in the report itself (not as a subreport). I am pretty sure it is my code and the where condition (using Macro's). it is:

    Code:
    Where Condition=[Unique_ID]=[Reports].[Pricelist_Item_View].[Control_UniqueID]
    I am pretty sure I am just not addressing the path correctly. Any help? Also, the main form I am using is named [Pricelist], while the subreport is in NavigationSubform

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    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
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I am not clearly able to interpret your post; are you indeed putting sub 'reports' inset into 'forms' ? I have never mixed two different objects like that together. Although I am not saying that is the cause of the error.

    Definitely your Where statement cannot include two = = and so you'll want to revisit the syntax on that; Specifically look at form/report opening argument Where syntax

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    NTC, OP is showing macro, not VBA, code, hence the two = signs.
    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
    RapidRepairArnold is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Kalamazoo/Battle Creek, MI
    Posts
    7
    June7,

    Thanks for the link, but the problem with that resolution is that it is filtering and not opening one specific record. I tried running that thru my head and it doesn't seem compatible with my end goal...

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Point is, the issue of correct syntax to reference navigation subforms was the same. That poster just happened to find a solution for filtering with macro that was compatible with the reference syntax. Did you visit the link referenced in post 2 of that thread?

    I don't use navigation form and previous attempts to help posters which this syntax issue have been frustrating. I have yet to figure it out and can't find any decent guidelines.
    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.

  7. #7
    RapidRepairArnold is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Kalamazoo/Battle Creek, MI
    Posts
    7
    June7,

    Just reporting back, and I got it figured out. I ended up setting a TempVar for it, and then doing the filter by that temporary filter. Thank you for pointing me in the right direction.

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

Similar Threads

  1. Open Form and Link To Specific Record
    By burrina in forum Forms
    Replies: 2
    Last Post: 12-17-2012, 11:09 PM
  2. Replies: 4
    Last Post: 12-14-2012, 03:42 PM
  3. open form based on combobox
    By bigmac in forum Forms
    Replies: 3
    Last Post: 04-09-2012, 11:25 AM
  4. open form based on comboboxes
    By bigmac in forum Forms
    Replies: 1
    Last Post: 04-04-2012, 06:55 AM
  5. Multi Based Criteria for SubReport
    By lostfan789 in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:27 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