Results 1 to 3 of 3
  1. #1
    BrockWade is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    63

    how to add value of subform's textbox to a textbox on main form

    I have a subform called qryDITtotal with a textbox called DIT2 that exist on a form that has two textboxes on it... I need to add the values upon pressing a button... any cluses as to what I am doing wrong here?: Thanks!

    Private Sub btnTotal_Click()
    Me.txtCalculatedBalance = Child30.qryDITtotal.DIT2 + Me.txtSubTotal


    End Sub

  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,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Tried biting my tongue and not saying anything but that hurts so here's my two cents:

    This looks like saving calculated value. Saving calcuated data is usually a bad idea, especially aggregate data like balances and sums. Ideally, aggregate data should be calculated when needed, not saved to table.
    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.

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

Similar Threads

  1. Replies: 4
    Last Post: 06-10-2013, 08:01 AM
  2. Replies: 2
    Last Post: 04-20-2013, 03:37 AM
  3. Replies: 8
    Last Post: 04-12-2013, 08:59 PM
  4. Replies: 17
    Last Post: 02-08-2012, 10:06 AM
  5. Replies: 7
    Last Post: 11-07-2011, 06:31 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