+ Reply to Thread
Results 1 to 3 of 3

How to create a subtotal on a subform and display it on main form in Access 2010

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    37

    How to create a subtotal on a subform and display it on main form in Access 2010

    I am learning Access 2010, and am trying to build a database as part of my learning experience. The database I am building is one to track my family's budget/finances. I have a table called Transactions (parent) and another one called TransactionDetails (child). I have built a form (called FORM_ExpenseTransactions) with a subform (FORM_ExpenseTransactionDetails) to enter data into these fields. The subform can handle multiple expense categories for any transaction.

    What I'm trying to do is display a subtotal of the expense amount (subform field called "ExpenseAmount"). In the subform footer, I have created a textbox and entered, "=Sum([ExpenseAmount])" in the Control Source and named it, "TotalExpense".

    Then I created another textbox in the main form and entered, "=[FORM_ExpenseTransactionDetails].[Form]![TotalExpense]" in the Control Source.

    The textbox on the main form just says, "#Name?". What did I do wrong?

    I have attached a database with a handful of ficticious transactions if that would help.

    Thanks in advance for any words of wisdom from experienced Access gurus!
    Doug
    Attached Files Attached Files
    Last edited by dougdrex; 10-21-2014 at 01:14 PM. Reason: add form names

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: How to create a subtotal on a subform and display it on main form in Access 2010

    answered on other board.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: How to create a subtotal on a subform and display it on main form in Access 2010

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Access subform VBA set filter settings by main form
    By PolarX in forum Access Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2014, 03:00 AM
  2. hide subform when open them main form
    By pedjvak in forum Access Tables & Databases
    Replies: 4
    Last Post: 04-09-2013, 08:21 PM
  3. [SOLVED] Filtering problem in access 2010 - subform
    By LadyScot101 in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-22-2013, 09:18 AM
  4. Main Form Multiple Combo Boxes Control Subform textboxes
    By jvbeats in forum Access Tables & Databases
    Replies: 0
    Last Post: 02-01-2013, 01:36 PM
  5. Replies: 0
    Last Post: 04-08-2009, 06:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1