Results 1 to 3 of 3
  1. #1
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501

    Click button to send data to field on another form

    I have form1 that needs rental credit data. I have a button to open form2 to calculate the rental credit. When I have entered the details and have calculated the rental I would like to create a button that will allow me to send the calculated rental credit back to the Rental Credit field in form1.

    Currently when I try:
    DoCmd.OpenForm "form1"
    [Forms]![form2]![RentalCredits] = Me.RentalCredits

    Or

    Me.RentalCredits = [forms]![form1]!RentalCredits]



    I get "You can't assign a value to this object"

  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
    I think you have it backwards. It's:

    Destination = Source
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501
    I was able to set this using the SetValue Macro
    Item= The field I wanted to update in form1
    Expression = The field that I wanted to take the value from

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

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2015, 02:11 PM
  2. Replies: 1
    Last Post: 09-07-2014, 10:15 PM
  3. Replies: 4
    Last Post: 09-07-2014, 11:41 AM
  4. Replies: 2
    Last Post: 02-08-2014, 07:10 PM
  5. Replies: 1
    Last Post: 09-14-2012, 10:27 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