+ Reply to Thread
Results 1 to 5 of 5

Cell not adding number and remembering last number added

  1. #1
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Cell not adding number and remembering last number added

    I have a text box titled "txtFallComp" a box titled "txtFallUsed", and one that is titled "txtFallBal". The way I need it to work is that when a number is inputted into "txtFallComp" and "txtFallUsed" is shows the balance in "txtFallBal" which is not a problem. The problem is when I come back to this form to update the "txtFallComp" I need it to update the 'txtFallBal' Instead it deleted the previous numbers and shows the new balance. I have to have the balance show on each record. I know that I can have the operator just add the number in their head for "txtFallComp" and put that in but that opens us up for errors. We do not get all the data at once. It comes in everyday thus has to be updated everyday. Here are the codes I am using.

    txtFallComp

    Please Login or Register  to view this content.
    txtFallBal
    Please Login or Register  to view this content.
    Fall Balance will never be a negative number. They can only use what they have in the completed box.

  2. #2
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Cell not adding number and remembering last number added

    Hi Taichi,

    Sounds like something is interfering with your "txtFallComp" and "txtFallUsed" textboxes, but there's no real way I can tell without seeing it. You might need to make a form and upload it.

    in the meantime, this works for me:

    Please Login or Register  to view this content.
    AfterUpdate works after the value is updated in the text field.

    Cheers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Cell not adding number and remembering last number added

    Sounds like this is an excel question, rather than an access question? (It is in the access forum)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Re: Cell not adding number and remembering last number added

    I apologize FDibbins it is an ACCESS database I was using some VBA from an EXCEL spreadsheet that was working and trying to get it to work with this database. Jouneryman3000 thank you for the coding. But when I put a new number in the txtFallComp it still wipes out what is in the txtFallBal and starts over instead of a running addition.

  5. #5
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Cell not adding number and remembering last number added

    Hi Taichi,

    i'm sorry I've not got back to you before now. I think I need to see your form. You should attach a basic file and let me see where the issue lies.

    Otherwise it sound like a basic mathematics issue. There are plenty of ways to resolve but if you want to keep a former value for later use, then do something like:


    Please Login or Register  to view this content.
    A lot depends on the exact nature of your calculation requirements, but running additions require that you hold the form value in memory (or a field) in order to add or subtract to/from it.

    Cheers

+ 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. [SOLVED] Calculating number of days when cell is empty and halting when date is added
    By MexicoBusiness in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-21-2015, 07:11 PM
  2. Counting the number of matched cells and adding it to a different number...
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2015, 02:51 PM
  3. [SOLVED] Find the "start" amount from a number that we have added a percent to a number!
    By MariaPap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2015, 02:13 PM
  4. Replies: 1
    Last Post: 10-08-2014, 06:09 PM
  5. [SOLVED] Extracting Number from various cell and added them and multiply with a factor
    By a_driga in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 09-14-2014, 11:02 PM
  6. Input number which is then added to bottom of a column and cell is reset to blank
    By CFT Brian in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-18-2013, 03:49 PM

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