Results 1 to 7 of 7
  1. #1
    Ahamedos is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    3

    Question can i send values back from a popup form ?

    Hi,


    in Access i'm able to send data from form to another.
    but i'm trying to send data back from a popup form.

    in my cenario Original form has a subform to enter products.
    when I click in one product it will open a popup form showing some extra information in Datasheet about that Clicked product.
    in the popup form I want to click in one option and send it's values back to the original form to Autofill some fields.



    is it possible ?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    before the close
    run an update query to update the table under the form
    or

    assign the values manually using full path names:
    forms!frm1!txtBox1 = forms!frmPopUp!txtBox1
    forms!frm1!txtBox2 = forms!frmPopUp!txtBox2
    docmd.close

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    removed - practically a duplicate response

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Jason has a sample db here:

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

  5. #5
    Ahamedos is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    3
    Quote Originally Posted by ranman256 View Post
    before the close
    run an update query to update the table under the form
    or

    assign the values manually using full path names:
    forms!frm1!txtBox1 = forms!frmPopUp!txtBox1
    forms!frm1!txtBox2 = forms!frmPopUp!txtBox2
    docmd.close
    I meant to select from the popup form.
    for example the item will be sold as Cartoon or Piece.
    if i select Cartoon, I want that row values to be sent back to the invoice form.
    and if i select Piece, I want it's raw values to be sent back.

    so each time it's gonna be different. and each product have different units (Pieces or kg ,,, etc.)

  6. #6
    Ahamedos is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Jason has a sample db here:

    http://www.baldyweb.com/WrappedForm.htm
    Great Samples in the website. I'm gonna try Cascading Combo.
    Thanks

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Thanks, I hope it helps. Doesn't seem like what you were after here though.
    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. Send to back on subform
    By lumpa1000 in forum Forms
    Replies: 2
    Last Post: 02-27-2017, 11:59 PM
  2. Replies: 6
    Last Post: 07-16-2014, 12:18 PM
  3. VBA for Embedded Image in Form 'Send To Back'
    By Kirsti in forum Programming
    Replies: 6
    Last Post: 06-11-2014, 09:21 PM
  4. Replies: 1
    Last Post: 09-14-2011, 07:50 AM
  5. Replies: 5
    Last Post: 08-20-2011, 01:08 PM

Tags for this Thread

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