Results 1 to 3 of 3
  1. #1
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27

    My calculated field output is not displayed in my table.


    I am doing a project on database stock management system.first time using access and i have been playing around with it. I have created three tables and forms for each table.On the form design i have created a calculated field as the control source for one of the field that is also present in the table.The results or output is shown on the form field but not in the table field.I don't what to do. pls help!!!

  2. #2
    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
    This is good! It is very seldom that it is appropriate for Calculated Fields to be stored in Tables; instead, you simply re-calculate them, as needed.

    Allen Browne explains the whys and wherefores of not storing them, and outlines the how to, if you simply must:

    http://allenbrowne.com/casu-14.html

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    1) If the field is calculated from other data in the same record, then what missinglinq said is correct, you shouldn't store it.

    2) If the field is calculated based on other things the user is entering, then you can do this -
    (A) Add a textbox linked to the field in the database. Set Visible to No for this textbox.
    (B) In the afterupdate event of the calculated field, set the value of the textbox field.

    Obviously, you'd generally only want to do that at data entry time.

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

Similar Threads

  1. Saving A Calculated Field In A Table
    By HectorTheInspector in forum Forms
    Replies: 2
    Last Post: 10-06-2013, 07:15 AM
  2. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  3. Replies: 3
    Last Post: 02-13-2013, 10:15 AM
  4. Replies: 2
    Last Post: 10-24-2012, 02:53 PM
  5. Calculated Field in a table 2010
    By JMac in forum Programming
    Replies: 5
    Last Post: 05-07-2012, 05:49 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