Results 1 to 10 of 10
  1. #1
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107

    Navigation Form

    Hello,

    I have created a tabbed Navigation Form and added a Navigation Target to a tabular form. In this list I have made a cell (Orders) that when clicked it will open up another form showing the details of that order.

    When I do this I get a "Enter Parameter Value" dialogue box.



    Is it possible to have a form open over top of another form in a Navigation Form?

    See examplesClick image for larger version. 

Name:	Navform.JPG 
Views:	20 
Size:	114.8 KB 
ID:	35204

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Assuming you have used the inbuilt navigation forms, this is caused by your form being loaded as a subform of the navigation form.

    The correct syntax you need will be something like

    Code:
    [Forms]![Navigation Form]![NavigationSubform].Form![YourFormName].[YourControlName]
    This is one of the reason most of us don't use them. They add a level of complexity that isn't necessary.
    A complete reference to forms and sub forms controls is here
    http://access.mvps.org/access/forms/frm0031.htm in case I'm a bit off with the syntax... (Quite possibly)
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Post your attempted code.

    If the code is in the form module used as Navigation subform, simple reference should work, does for me.

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

  4. #4
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    Thank you June7. My issue is that the form that opens has a subform.

    DoCmd.OpenForm "frmWorkOrder", , , "OrderNum =" & Me.OrderNum This opens the main form frmWorkOrder.

    but frmWorkOrder has a subform called frmWordOrderReview

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Presence of subform shouldn't matter. I open form containing subform.

    Is that a typo in post or is the subform name actually using Word?
    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.

  6. #6
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    Word was a Typo. The subform is filtering on a query criteria using [Forms]![frmWorkOrderStatus]![OrderNum]

    This is the error I get Click image for larger version. 

Name:	Capture.JPG 
Views:	15 
Size:	24.3 KB 
ID:	35207

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Why? Why aren't you using Master/Child Links properties of subform container control?

    I never use dynamic parameterized query.
    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
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    I'm learning

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Does that resolve issue?
    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.

  10. #10
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    Yes this is exactly what I was looking for. Thank you!

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2022, 12:39 PM
  2. Replies: 2
    Last Post: 07-10-2016, 01:53 PM
  3. Replies: 5
    Last Post: 03-02-2015, 02:14 PM
  4. Replies: 5
    Last Post: 11-04-2014, 08:13 AM
  5. Replies: 12
    Last Post: 10-23-2014, 02:08 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