Results 1 to 5 of 5
  1. #1
    Jishnu Surendran is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2018
    Posts
    29

    Tabular form

    I have a tabular access form in which a text box was inserted with the formula "=Sum([Shares])" where "Shares" represent one of the fields in the form. However, the text box doesn't get updated when I change the field but only when I update the whole line or the tabular record and that too takes place very slow. Can I make the text box update the formula result instantly when I change the field?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The record has to be committed to table. Record is committed when: 1) close table/query/form or 2) move to another record or 3) run code to save record.

    Code in the data input textbox AfterUpdate event could be like:

    If Me.Dirty Then Me.Dirty = False
    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.

  3. #3
    Jishnu Surendran is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2018
    Posts
    29
    Quote Originally Posted by June7 View Post
    The record has to be committed to table. Record is committed when: 1) close table/query/form or 2) move to another record or 3) run code to save record.

    Code in the data input textbox AfterUpdate event could be like:

    If Me.Dirty Then Me.Dirty = False
    Thanks! It is working!
    However, there is still some lag. I've tries application.echo but with no result.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Don't know why the Sum() would have lag.

    I've never used application.echo.
    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.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    How many Records are you dealing with?

    Has the database been split?

    If 'yes,' where does the backend reside?

    Linq ;0)>

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

Similar Threads

  1. Tabular Form and Checkbox issues
    By sami1900 in forum Forms
    Replies: 2
    Last Post: 06-14-2016, 04:26 PM
  2. Sorting records on a tabular form
    By Jen0dorf in forum Access
    Replies: 10
    Last Post: 12-12-2015, 08:29 AM
  3. Tabular form text box colors
    By avarusbrightfyre in forum Programming
    Replies: 3
    Last Post: 03-01-2011, 12:25 PM
  4. Tabular Form
    By Evgeny in forum Forms
    Replies: 0
    Last Post: 04-26-2010, 08:39 PM
  5. Remove items from Tabular Form
    By JoshS in forum Forms
    Replies: 3
    Last Post: 04-26-2010, 02:18 PM

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