Use The Accumulator To Total The Sales?

Mar 23, 2010

I am having some trouble with my program that I am doing. I am supposed to code the application so that it creates a report which I have done. Now the problem that I am having is I have to use an accumulator for the total sales amount in the access file. I am stuck on how to have it say "Total Sales:" and then have the accumulator with the ammount of $32000 next to it becuase I have to use the accumulator to total the sales.

[Code]...

View 1 Replies


ADVERTISEMENT

How To Accumulate The Sales Amount And Then Display The Total Sales

Apr 5, 2011

I need my program to output and input a customer ID and sales amount multiple times. I need it to display both outputs, customer ID and sales amount, on mulltiple lines. It also will need to accumulate the sales amount and then display the total sales. it should look something like that.[code...]

I think that I was supposed to use a messagebox but wrote the program a different way. the form.vb was already locked, but I added two text boxs. Not sure if I did this right because I need to enter multiple sales for one customer ID.[code...]

View 1 Replies

Adding An Accumulator - Total Up The Items

Nov 16, 2011

the code to use to add an accumulator so I can total up the items in my shopping cart?

[Code]...

View 3 Replies

Accumulator - How To Update Total Cost After Every Item Selected

Aug 4, 2011

How to update the total cost after every item is selected and the user clicks enter...

Private Sub calcbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcbutton.Click
Dim amount As Double
Double.TryParse(amounttextbox.Text, amount)
Dim total As Double
[Code] .....

View 1 Replies

Total Value Of Inventory - Adds The Result To The Value In An Accumulator Variable

Oct 15, 2010

I've actually gotten this program running on paper, BUT, when I try to write a code for it, it doesn't work . . . somewhat . . . When the user clicks the compute button, the total value of inventory is computed by multiplying the cost per item times the quantity of the item and then adds the result to the value in an accumulator variable.

So far this is what I've come up with:

CODE:

The quantity and cost per item is suppose to multiply each row, but it only multiplies the first row.

View 4 Replies

Display The Values Of Domestic, International, And Total Sales Of Company "Conway Enterprises

Aug 15, 2009

I'm making an application in school where I have to display the values of domestic, international, and total sales of company "Conway Enterprises." Everything seems to be working except it is not displaying the totalCompany sales as a currency. I'm sure it's probably an easy fix but I've been searching the internet and re-reading my book for awhile with no results. Below is the code, as I said everything seems to be working fine aside from adding the two array values and then displaying them as currency.

[Code]...

View 4 Replies

When The User Enters The Name "eugene" The Program Is Suppose To Calculate And Output The Total Monthly Sales?

Mar 27, 2011

My code works correctly if I do not have the DO WHILE statement, however we are suppose to have it loop. Which it will continue to ask for the salesman's name, code, etc. but when the user enters the name "eugene" the program is suppose to calculate and output the total monthly sales and the total commission dollars. What is happening is that when a user enters "eugene" the program is not recognizing it to do what it is suppose to do(calculate and output the total monthly sales and the total commission dollars) I am stuck and need assistance on how to make it recognize eugene. I am also having trouble with trying to figure out how once eugene is entered to tell the program to add the salespersoncommission and monthly sales of each case to get the totals to output to the user. Can you add the cases?

Option Explicit On
Option Strict On
Module Lab14

[code].....

View 8 Replies

Press The Calculate Button It Somes Up With Sales Totals And Sales Commissions?

Nov 3, 2009

I am trying to get a function so when i press the calculate button it somes up with sales totals and sales commissions. this is just a simple project i just cant find the answer.

View 5 Replies

Code Total Cost To Give Pound Sign With Total Cost At Moment When Total Comes Up

Jun 7, 2010

How do I code the total cost to give me a pound sign with the total cost at the moment when the total comes up for an example it gives me 3.6 when I need it to show £3.60 here is the code I have so far. [code]

View 2 Replies

How To Add An Accumulator

Nov 16, 2011

code to use to add an accumulator so I can total up the items in my shopping cart?

Public Class MainForm
Private Property LabelText As String
Private Property ValueType As Integer

[code]....

View 3 Replies

Payroll Calculator - Program Must Calculate And Display The Total Pay In The Total Pay Label

Oct 6, 2010

The pay rates for the project are:

a. Level 1 - $10.00
b. Level 2 - $12.00
c. Level 3 - $14.00
d. Level 4 - $16.00
e. Benefit Deduction Rate - 0.10
f. Overtime Factor - 1.5

For ease of program maintenance, all of the above rates and factors must be stored in module level constants. All references to pay rates in the program must refer to the module level constants.

When the Calculate button is clicked:

a. The value in the Hours text box must be validated to insure that it is numeric value greater than zero.

1. If the value is not valid, a message box must appear as shown below and the user must be offered the option to continue processing or quit the program.

2. If the user chooses to continue processing, the focus must be set to the Hours text box.

3. If the user chooses to quit, the program must close immediately.

b. If the value is valid, the program must calculate and display the total pay in the Total Pay label.

1. The pay rate is determined by which Job Grade radio button is checked.

2. For hours less than or equal to 40, the total pay is the hours times the pay rate.

3. For hours greater than 40, the total pay is 40 hours times the pay rate plus the hours in excess of 40 hours times the pay rate times the Overtime Factor.

4. If the Full Time radio button is selected, the total pay must be reduced by the Benefit Deduction Rate.

5. The value displayed in the Total Pay label must be formatted with a dollar sign and with two decimal
places.

6. The focus must be set to the Hours text box.

Why i get an error when i try to run this code

Code:

Also the message box, both yes and no close the program.....

View 10 Replies

Loop Through Top Level Folder In Mapped Drive And Give Total Count Of Files And Total?

Oct 28, 2008

I am working with VB 2008. I want to be able to run this program say in N: and it will show me in an excel sheet the following:

Folder Path Size(GB) Count of Files
N:Clients 0.53 308

where clients contains subfolders and files and the size is the total of all those files within each folder and the count is the total within each folder also.

This works fine as it is but i have to select one by one the top level folders and some of them are huge so it takes forever to give me an answer.

1) I would like to see in my spreadsheet the following by only select the network drive n:

Folder Path Size(GB) Count of Files
N:Clients 0.53 308
N:Software 10.7 15430
N:Billing 0.98 105

2) I would also like to know if this is the faster method.

3) I tried adding a progress bar so that the user can have an idea of how much this will take but i had to remove because it was not working.

4) I would like to see the folder name, size of folder and count of files in the listview.

Here is the code:

Imports Microsoft
Imports Microsoft.Win32
Imports Microsoft.Win32.Registry
Imports System.Collections

[code].....

View 5 Replies

.net - Develop Accumulator Codes?

Nov 7, 2009

This is for vb.net I've been working to develop a system which involves computation.What I've been trying to develop in my program is, I have a textbox where user will enter a numeric value,there is a button and a label below and in the first place the label should be set to zero. Everytime you enter a numeric value in the textbox and click the button it should add the value in the label and should save the value in the label so even if you exit the program whatever the last value displayed in the label should remain the same when run the program again,I believe it requires a database to save the value.Basically its like with payment system which saves the total amount of all payments made.

This is how should it works,say for example,if you will enter 1,2,3 it should save the sum value which is 6 in the label even if you close the program and when you run it again and enter another value it should add to the current value which is 6.

View 3 Replies

VS 02/03 Accumulator Application Not Working?

Nov 30, 2010

I am currently going through Murachs Beggining .net programming book. I am trying toimplement an application for an exercise at the end of chapter 5. The applicationspecification is as follows.

View 4 Replies

How To Calculate Discount In Percent % And Get Total In Total Column

Jun 8, 2011

I am using visual basic 2008 amd creatomg a datagrodview format like below [code] Now I wnat to get total balance in total column after less discount in percentage with ENTER EVENT proceedure and get the whole total column balance in a textbox i.e Net BalanceTextBox. Please tell me how to calculate discount in percent % and get total in total column and also tell me how to move cursor in next cell instead of bottom row in datagridview.

View 2 Replies

IDE :: Sum Up Total In An Unbound Datagridview Column With Total To Textbox?

Apr 22, 2011

I have 3 columns in a unbound datagridview, "length" "height" and "Total". Total = length x width and the final total in TextBox outside of the Grid. I found question simalar in this forum and tried the code but i am getting errors.The following is the code i am using

Public
Class Form1
Dim UnboundColumn[code]...

View 5 Replies

Accumulator And Calculations Are Not Working In VB 2010?

Apr 13, 2012

OK, so my accumulator is now adding and showing properly in the form as a total. However, something is wrong in my if... then statement and it's not throwing it to the 2nd level after reaching the 125.*Edit to show updated with the Do While Loop. Now causing issues with my input error msgbox... *

do while decTotalCredits < 125
If IsNumeric(txtCredit.Text) Then
' This statement will convert the string entered to decimal and establish the

[code].....

View 1 Replies

Can't Get The Counter And Accumulator To Reset Back To Zero

Apr 25, 2010

Okay my assignment is to change a code up using two functions instead of a subprocedure to calculate total rainfall and avedrage rainfall and then to add a startover button to the application which not only clears all the labels but also clears the counter and accumulator. This is what I have gotten so far my functions do not work and I can get the labels cleared. I just can't get the counter and accumulator to reset back to zero

View 1 Replies

How To Create Accumulator For Collection Objects

Apr 23, 2012

I am trying to maintain a total for multiple collection objects in a class. When I create a new object, it resets the total to zero, only adding the current value being passed to the function. I have tried to use a static variable, create a second variable to hold the old total while adding the new value. The base class holds the total value, while the sub class creates the new object that holds information. I am passing the new value to a function in the base class adding the new value to the total when each new record is created.

[Code]...

View 1 Replies

Random Variable Generation, And Accumulator?

Jun 6, 2011

i am trying to teach myself vb (im only 14), and i'm not having a easy time. What im trying to do, i need a user to define a upper and lower bound of a range. From there i need to generate random numbers, a certan number of times, with in that range...this is my first problem.And then, i need to make counters to store/test all of these variables as even, odd, positive, negative and zero's ...that i need to append to a richtextbox to show how many of each. Im not even sure if rtb is the right object to use...you know, instead of textbox, or label?the last thing was to do with Private function as boolean. do I need this to test these variable?

[Code]...

View 14 Replies

Test Score Accumulator Application

Nov 30, 2010

I am currently going through Murachs Beggining .net programming book. I am trying to implement an application for an exercise at the end of chapter 5. The application specification is as follows.

[Code]...

View 2 Replies

.net - Accumulator Is Not Working In VB (Visual Studio 2010)?

Apr 11, 2012

My accumulator (decTotalCredits) is not working properly and is resetting to zero with each entry. I am needing the accumulator to add in each user input until it hits 125. As it normally is, I'm sure it's something small.

[Code]...

View 1 Replies

Adding Another Total To An Existing Total?

Nov 21, 2009

I'm new to forums as well as new to VB 2008. I'm in process of making a order calculator which will total any values you selected in combo boxes/checkboxes and then display it in a selected area. There are 3 things that I want to achieve: 1. Be able to add another total to an existing total (currently I'm able to see only one total when I hit "Calculate" button)2. Display how many orders I have made so far (new total counts as one order)3. Be able to add up checkboxes selected to an overall total. (when I try to add up one checkbox with another it seems to be stuck on 1.5 pounds which I assigned for each "side order")

View 4 Replies

Make JM Sales Project?

Mar 6, 2011

The project is suppose to total the 8 commissions (in the array) I see the coding but when I try to put in a label at the bottom of the txtReport I get an error now I have deleted the box and am confused as to what my next step should be. Do I create a label box in the txtReport. I am so close to being finished.

The item "objDebugWindowsApplication1.Form1.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.

[code].....

View 9 Replies

Point Of Sales Software?

Aug 28, 2009

I have desinged a point of sales software but i need a lot of help to upgrade it as it is not standard and i'm a young programmer. I have designed the following forms (Cash Sales, Credit Sales, stock and Items).When a user inserts a record for cash or credit sales) I want that particular product entered to be deducted from the stock.

View 1 Replies

VS 2008 Sales Tax And Rounding?

Aug 30, 2011

I've figured out how to add the sales tax to a total, But I'm getting back an unrounded number for my total.This is my code to add the sales tax.

[Code]...

View 5 Replies

.net - Making The Baseball Ticket Sales?

Feb 23, 2011

I'm working on a visual basic application( w/ visual studio 2010) that calculates ticket sales. This one is been really challenging since i'm a newbie when it comes to visual basic.I'm i'm having trouble getting the calculate button to Here are the instruction to get the costs from the functions and use them to calculate the total.

1.)User selects whether to purchase season tickets or single-game tickets

2.) User enters the number of tickets needed and the type of seats based on whether they selected season single-game tickets.

3.) User clicks the Compute Ticket Cost Button to display final cost

4.) User clicks the Clear Form button to clear the response

I'm stuck on the calculating button. I just need to be able to capture the cost from the button and then use the button to compute it.

Public Class Form1
'Global Variables
Dim intTicketChoice As Integer

[code]....

with the singlegamecost() function and the seasonacost() function

View 2 Replies

Creating A POS (point Of Sales) System

Dec 15, 2011

I have just finished college and I am awaiting my exam date. I have created some desktop applications for my portfolio, but now I want to create a Point of Sales (POS) system to add to the list.I notice in supermarkets and various shops that POS systems use touch screen monitors to interact with the program.My first question is, do I need to use different code or controls in my applications so they can be used with touch screen monitors.I have created an application for hotels for booking rooms (not for a client, just as a demo project), but if there is anyone out there who could give me some pointers on how to create the POS system.I will be doing some research and I will start designing some controls over the next few days. I am looking forward to getting this project started.

View 2 Replies

Creating Sales Tracking Program

Mar 19, 2009

I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, a combined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow. [code]

View 1 Replies

Creating Sales Tracking Program?

Dec 19, 2009

I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, acombined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow.

Public Class MailOrder
Private product1 As Decimal = 2.98 ' product number 1
Private product2 As Decimal = 4.5 ' product number 2

[code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved