Results 1 to 5 of 5
  1. #1
    jpkeller55 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    169

    Pop up form needs data from another form

    I am trying to build a inquiry function to my database where a user can post a question and other users can post replys...much like the thread concept of AccessForums.Net. I have a main form that contains the initial question and a subform that contains the replies. I would like to present a popup to the user to enter a reply. I have figured out how to do that but I need the popup form to get the value of the InquiryID from the main form and this I am having trouble with. Attached is a sample database that shows what I am trying to do.

    When the POST REPLY button is selected, frmReplyEntry opens...somehow I need the Inquiry ID from frmInquiry2 to populate the InquiryID on the frmReplyEntry.



    Thanks for any assistance.

  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,641
    Along the lines of

    DoCmd.OpenForm "Whatever"
    Forms!Whatever.InquiryID = Me.InquiryID
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    slave138's Avatar
    slave138 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    WI
    Posts
    233
    Set the Control Source for the field on the Reply form to:

    Code:
    =[Forms]![frmInquiry2]![InquiryID]

  4. #4
    jpkeller55 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    169
    Oh my gosh, that was too simple. I was trying to do something way to complicated. Thanks Paul!

  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,641
    Happy to help!
    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: 2
    Last Post: 11-25-2013, 10:56 AM
  2. Replies: 63
    Last Post: 01-25-2013, 05:20 AM
  3. Replies: 0
    Last Post: 03-11-2010, 02:11 AM
  4. Replies: 9
    Last Post: 02-19-2010, 12:07 PM
  5. Replies: 9
    Last Post: 03-24-2009, 09:19 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