how to add and subtract in access?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shan Ray
    New Member
    • May 2011
    • 5

    how to add and subtract in access?

    [IMGnothumb]http://bytes.com/attachments/attachment/5117d1304319481/new-picture.jpg[/IMGnothumb]

    just want to ask if what's the expression on how to automatically get the value of balance where every time i input a value at qty added, it will be automatically added to the last value of balance and at the same time when i input value on qty taken it will be subtracted to the last value of balance and place the output on field balance..thanks ..see the attached photo for more info..
    Attached Files
    Last edited by TheSmileyCoder; May 3 '11, 07:04 AM. Reason: Fixed image link
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    Just because access' table at a first glance looks like excel rows and columns, the 2 are not alike. The way you are proposing to use access shows a lack of understanding of what a relational database is.

    If you want some help on how to control stock on hand, you could start by looking at this link:
    Allan Browne's inventory

    Comment

    • Shan Ray
      New Member
      • May 2011
      • 5

      #3
      oh im so sorry...i just use the excel as my example but its just the same with what I will be doing in access and i dont know what expression to use...i just want the last entry of balance to be subtracted to Qty taken or to be added to the qty added...thanks. .

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #4
        There is no simple answer. Look at the link I gave you.

        Comment

        • Shan Ray
          New Member
          • May 2011
          • 5

          #5
          ..thanks for the link you've given but i really dont know how to hardcode..i just want to know the expression or the likes on getting 'solution'..tha nks..

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            Given what I see in the picture, there is no expression that can calculate this in Access. You will need to use code unless you make modifications to the data structure.

            Comment

            • Shan Ray
              New Member
              • May 2011
              • 5

              #7
              thanks for the reply...you see i dont know how to code and I could really appreciate if your kind enough to help me...thanks...

              Comment

              • Shan Ray
                New Member
                • May 2011
                • 5

                #8
                ...well here is an access example...hope you could help me out..
                Attached Files

                Comment

                • TheSmileyCoder
                  Recognized Expert Moderator Top Contributor
                  • Dec 2009
                  • 2322

                  #9
                  The problem is not that we don't understand what you want. You need to understand that we are not able to give you what you want in any reasonable timeframe. Even if me or another did whip something up for you, you lack the knowledge to understand and implement it. At best we could make something similar to the first link I gave you which you have allready admitted that you didn't understand.

                  Comment

                  Working...