Results 1 to 4 of 4
  1. #1
    JayX is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    62

    Exclamation Adding/Subtracting

    I have 3 buttons right now one that when you click it a input message appears and asks for a value which it then puts that value into a textbox | Me![Total] = Val(InputBox("Please enter a value:")) |, thats the code. Next I have another button that when you press it, it increments by 1 but what I want it to do instead is when you click that button another input message appears asking How much would you like to add to the total inventory and then it adds the number you put in onto what is already there in the 'Total' textbox as well as showing the number you have put into the input message in another textbox...any idea? I'd like to do the same with a subtraction button as well but obviously subtracting what's there in the 'total' textbox



    Help would be greatly appreciated

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    nicknameoscar is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2011
    Location
    Earlysville, VA
    Posts
    91
    Just in case you were not aware...what Paul is referring to is called 'cross posting'. The reason forum regulars dislike it so much is if they take the time to answer a question in say the Programming forum and then find that the question was answered in say the Access forum already then they just wasted their time. No one likes to waste their time.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Roger that:

    cross posters
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. vba > subtracting time
    By metokushika in forum Access
    Replies: 2
    Last Post: 12-09-2014, 09:17 PM
  2. Adding/Subtracting
    By JayX in forum Access
    Replies: 1
    Last Post: 12-15-2011, 01:47 PM
  3. adding and subtracting two time
    By smahdih in forum Queries
    Replies: 3
    Last Post: 11-20-2011, 03:21 PM
  4. Subtracting Fields
    By zakslaher in forum Access
    Replies: 15
    Last Post: 03-30-2010, 09:36 AM
  5. Subtracting Records
    By e13851mlee in forum Programming
    Replies: 1
    Last Post: 12-17-2009, 04:50 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