Results 1 to 4 of 4
  1. #1
    janthony is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    15

    [HELP] Textbox field update from query

    I have a Form where I can add SALES TRANSACTIONS and SUBTRANSACTIONS. The form has several textboxes calculated by a query that shows Total, Discount, Tax, and Grand Total. The problem is that whenever I enter stuff on the Form, it doesn't display/update the textboxes until you exit/reopen the form or go back/forth from another record.

    The Form itself is actually designed as such:


    SALES TRANSACTIONS form which includes Customer, Employee, Discount, and other information (i.e. date)
    SUBTRANSACTIONS subform which displays the corresponding SUBTRANSACTIONS for that particular SALES TRANSACTION such as Product, Quantity, etc.
    TOTAL subform which displays the corresponding Total, Discount, Tax, and Grand Total (from a query).

    All forms are in Single Form view. Everything matches - the SALES TRANSACTIONS info, SUBTRANSACTIONS info, and TOTAL info. I just want the textfields in TOTAL to update anytime I add/change a product/quantity.

    I've tried a VBA Code AfterUpdate + Me._____.requery option and that didn't work.

  2. #2
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Here's a good thread for that http://forums.databasejournal.com/sh...ate-of-subform

    Here's a couple more methods:

    http://social.msdn.microsoft.com/For...orum=accessdev

    http://bytes.com/topic/access/answer...n-form-subform


    Source: google "MS Access update main form from subform"

  3. #3
    janthony is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    15
    Thanks again! At this rate, I need to give you credit in my database!

  4. #4
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Nah, just click the little sherriff's star occasionally.
    |
    |
    |
    V

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

Similar Threads

  1. Replies: 1
    Last Post: 05-17-2013, 12:53 PM
  2. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  3. Replies: 1
    Last Post: 08-31-2011, 04:03 PM
  4. Replies: 5
    Last Post: 08-11-2011, 05:38 PM
  5. Replies: 2
    Last Post: 09-26-2009, 07:19 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