Results 1 to 3 of 3
  1. #1
    sidewayzalex is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    51

    Overwriting Calculated Field

    Hey again,


    I am having trouble with a Bill of Materials form.
    I would like to take some fields and display the subtotals/totals of the cost price (what we buy the part for) and the sell price (what we sell for).
    The thing is, we often get orders that are slightly under our lower limit of cost, and they need to be pushed up a few dollars to fit the lower limit. We also give discounts to certain types of customers. Knowing this, I would like to have a generalized subtotal and total field for Extended cost and Extended Sell.

    The total is suppose to add together the labor costs and the subtotal, and this is the particular field that I wish to overwrite.

    As of right now, I am using text boxes with equations referencing the several subforms within this form to get the calculations.

    Is there a way to have the default value be the calculation, and be able to change it if necessary, without changing permanent data?

    Thanks ahead of time.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Don't understand. Why would you want to overwrite a calculated value with a value that does not derive from the stored data?

    A default value can be an expression but if values aren't already available when the new record is created, the default will calculate null. The DefaultValue property only applies when record initially created.
    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
    sidewayzalex is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    51
    The option that we have come up with is an adjust price field that can either add or subtract to the total and give us a grand total.

    To the best of my knowledge, the only reason to overwrite the calculated value is if the price is under the credit card minimum limit for sales (or something like that). Believe me, I dont fully understand why either, just trying to do what my boss asks.
    Thanks though

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

Similar Threads

  1. Calculated field help
    By eds in forum Access
    Replies: 2
    Last Post: 07-18-2011, 05:33 PM
  2. Calculated Field Help
    By Alex Motilal in forum Queries
    Replies: 2
    Last Post: 01-06-2011, 04:54 AM
  3. overwriting table rows
    By VickyC in forum Forms
    Replies: 2
    Last Post: 09-23-2010, 07:58 AM
  4. Calculated field
    By nashr1928 in forum Forms
    Replies: 9
    Last Post: 08-01-2010, 01:59 PM
  5. Calculated field
    By nashr1928 in forum Forms
    Replies: 3
    Last Post: 07-22-2010, 05:10 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