Results 1 to 5 of 5
  1. #1
    xmattxman is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2017
    Posts
    19

    Click on a field in a navigation form to bring up a second form

    I have a form set up called RMA_DATASHEET. I embedded a macro on click so that when someone clicks on the OH_NUMBER field it will bring up a second form that has more detailed information. That works perfectly until I drop the RMA_DATASHEET into a navigation form. After doing that when I click on OH_NUMBER I get this prompt. Enter Parameter Value Forms!RMA_DATASHEET!OH_NUMBER.



    I am sure it is something simple just not sure what. Any ideas on the issue? I attached 2 images to help you understand a little better.
    Attached Thumbnails Attached Thumbnails Macro on click.JPG   Enter parameter.JPG  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    The form reference changes (forget how exactly on navigation forms as I don't use them). If you want to use VBA, the "Me" reference would still work:

    http://www.baldyweb.com/wherecondition.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    xmattxman is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2017
    Posts
    19
    So I did VBA instead DoCmd.OpenForm "frmOPEN_RMA_AND_RMA_CONC", , , "OH_NUMBER=" & Me.OH_NUMBERI but I get Run Time error 3464 and idea why?

  4. #4
    xmattxman is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2017
    Posts
    19
    I got it working with this DoCmd.OpenForm "frmOPEN_RMA_AND_RMA_CONC", , , "OH_NUMBER = '" & Me.OH_NUMBER & "'" Thanks for the help!!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help! You can add an argument to open in dialog mode if you want, as was done by your macro.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 08-06-2018, 05:31 PM
  2. Replies: 6
    Last Post: 09-30-2015, 05:59 PM
  3. Replies: 1
    Last Post: 01-16-2015, 12:52 PM
  4. Replies: 5
    Last Post: 02-13-2014, 05:27 AM
  5. Replies: 5
    Last Post: 04-23-2013, 03:22 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