Get The First Store To Calculate The Total 5 Payroll Inputs But It Is Only Calculating The First Entry?

Apr 15, 2012

I am trying to get the first store to calculate the total 5 payroll inputs but it is only calculating the first entry I am not sure what I am doing wrong. Also if I click on the cancel button in my inputbox it bombs.

Private Sub calcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcButton.Click
' Dim storeTotal As Integer
' Dim store As Integer

[code]....

View 8 Replies


ADVERTISEMENT

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

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

Select All Inputs Of Thisweek Entry?

Jul 13, 2009

how can i select all inputs of thisweek entry.in my database i have fromdate and todate fields, now how could i select if i'm in anyday of the week but i have select to display thisweek activities. it will display into the datagridview all the activity setted for this week...exam in Microsoft outlook there, Day or today, and work week and month button..if i select today or day it will deplay in the datagrid all activties for the day, and if i select work week it will display activities for the entire week.. and month also...i'm using visual studio 2005 and access 2003

View 17 Replies

Calculate Percent From 2 Different Inputs?

Oct 12, 2010

vb.net
'' Project name: Golf Pro Project
' Project purpose: Displays the commission based on a

[code]......

i dont know how to assign variables and im juist totally lost right now and this is due today and i was sick 2 weeks and am 2 chapters back.

View 11 Replies

Calculating Total In Gridview

Jul 17, 2009

I have a GridView with column Percentage. I want to get the total of Percentages in that colum.

View 1 Replies

Calculating Button For Total And Average?

Apr 10, 2012

need to make sure I got everything right for my Calculate Button in displaying the Total and Average.

Option Explicit On
Option Strict On
Public Class Grades

[code]....

My problem is mostly in the Calculate Button, what is CStr? I already used that because I set my Explicit On and that suggested it. Also when I debug I enter my 3 grades and click calculate, 0 is displayed in both my Total and Average Label box.For the Average, how would I display it to 2 decimal places?How would I set a parameter for the exam scores to be between 0-100?Would it be Try/Catch? And where would I place that coding?How do I convert my textboxes to integers?

View 7 Replies

ComboBox - Calculating Total Amount Of Pay

Nov 15, 2011

These person is hired by her employee which it agree that the salary would be one penny the first day, two pennies the second day and four pennies the third day and continuing to double each day. I have to use a combo box to select the days that the employee will be working and calculate the total amount of pay that will received. Its not calculating right?

Dim intDay As Integer = 0
Dim intCount As Integer = 1
Dim decPay As Decimal = 0
Dim intNumDays As Integer
Dim dblTotal As Double = 0
[Code] .....

View 1 Replies

Calculating Total Amount Of Column In ListView

Jun 3, 2011

I want to get the total (column) amount using Listview w/o database VB.NET

lstitems

Item Name | Unit Price | Quantity | Amount
---------------------------------------------
Sample1 | 100.00 | 1 | 100.00

Sample2 | 100.00 | 1 | 200.00

Sample3 | 100.00 | 1 | 200.00

Label or Textbox ----> Total 500.00

View 15 Replies

Errors When Calculating - Doesn't Calculate Anything Correctly ?

Sep 9, 2009

I am making this program for a school assignment but it has errors when calculating

Private Sub frmReceipt_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'When this form is loaded, assign the date to the date label & start the timer
lblDate.Text = Date.Now

[CODE]...

So if counter finishes, execute the following code

If counter > 4 And km >= 1 And kmcashset = 0 Then 'If there is still kms to calculate 'And kmcashset = 0
kmcashholder = kmcash
km = km / 5

[CODE]...

And if I add counter = 0 and km = 0 at the end of that "If counter > 4 And km >= 1 And kmcashset = 0" Then it doesn't calculate anything correctly. I supply it with 9 for Distance and it returns 4 for excessdistance which is correct but returns 7 for excessdistancecharge when it should be 4! When I supply 23 for Distance it returns 18 for excessdistance and 11 for excess distance charge which is correct. (???)

Excessweightcharge calculates correctly.

I think it may be the way I'm implementing it, through the use of AND or maybe it's because it's in timer tick?

-Minimum charge of $5 which covers 10 kgs for the first 5 kms only
-Each kg over 10 kgs incurs a charge of $0.50
-Distances over 5 kms incur an additional charge of $1 per km up to 10 kms
-For deliveries over 10 kms, the extra distance should be rounded up to the nearest 5 kms and charged at $2 for each extra 5 km block.

EXAMPLE 1:
Packet weighing 9kms travelling 9 kms
Standard charge for first 5 kms ($5.00)
Weight less than 10 kgs so no extra weight charge
Extra distance charge 9 - 5 kms = 4kms x $1 = ($4)
Total delivery charge = $5 plus $4 = $9

[But my program returns 7 for excess distance charge]

EXAMPLE 2:
Packet weighing 33kgs travelling 23 kms
Standard charge for the first 5 kms ($5)
Excess weight 33 - 10 kgs = 23kgs x $0.50 ($11.50)
Extra distance (23 - 5kms = 18kms):
18kms ( 5 to 10 kms at $1/km) = ($5)
13kms (18-5)/5 = 3 (rounded up) x $2.00 = ($6)
$5 + $6 = $11
Total delivery charge = $5 plus $11.50 plus $11 = $27.50

[My program calculates everything correctly]

View 2 Replies

Calculate Total Time?

Jan 6, 2012

I have many time result in my hand... like

10.10.23 (hours,minute,seconds)
01.14.15

How can i calculate total time?

View 8 Replies

How To Calculate Total Of A Column In SQL

Nov 30, 2010

I have a sql SELECT statement in vb.net. I have this line of code to calculate a specific percentage of the Net Total:ROUND(Invoices.NetT*'" + txtOnGoing.Text + "'/100,2) As Commission 'txtOnGoing is a text box which pre populates a certain number e.g '10'... this means 10% of the NetT column..The above code works fine, now I want to add the "Commission" Column and display the Total in a text box. Does anyone know how to do this? I know I can use the SUM operator but because the Commission column isnt a column that actually exists in the table I dont know how I could do this.

View 3 Replies

VS 2008 : Calculation Goes To The Last Entry As Stated The Multiply This Total By Number Of Days(dbl)?

May 3, 2011

I have an application that has 3 list boxes, one selects a workshop, the other a location. the third is to display selected costs.to do the calculation a loop is required. i have written the code but when i calculate the cost the final result to be displayed ends up as being the cost of the last work shop and location * 3,What is supposed to happen is the location is multiplied by the number of days(3 in this case) and added to the workshop cost.the loop is supposed to add all cost from the list box till all have been added.what is happening is the calculation goes to the last entry as stated the multiplys this total by number of days(dbl)?

View 1 Replies

Calculate The Total Of A Column From A Database?

Apr 19, 2012

I'm having some trouble firstly trying to calculate the total of a column in the database connected to my vb.net project. Then I want to divide that total by the number of items in a listbox. This is my code so far:

Private Sub btnavresult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnavresult.Click
Dim sqlx As OleDbCommand = New OleDbCommand

[Code]......

I get an error saying "No value given for one or more required parameters." when I try to run my program on this line "Dim rdr As OleDbDataReader = sqlx.ExecuteReader()"

View 6 Replies

Calculate Total Of Decimal Textboxs

Jun 10, 2009

I have two textboxs are formated to decimal type. i want create thirth textbox and get total of above two textboxs. how can i do that.

[Code]...

View 13 Replies

DB/Reporting :: Calculate The Total Sum Of Data In CR?

Dec 6, 2008

How to get the total sum of my fields that are not duplicated? The highlighted are examples of my duplicated fields (both lec and lab) but they don't have the same time.

View 1 Replies

Eliminating (Calculate Total Due) Button?

Apr 6, 2010

This is the code that I have so far, the program works, etc.. How to delete the "Calculate Total Due" button and write the code so that the total due changes when any of the three options is changed/selected.

Option Explicit On
Option Strict On
Option Infer Off
Public Class MainForm
Private Function CalcResidentialTotalDue(ByVal premiumChannels As Integer) As Decimal
[Code] .....

View 3 Replies

How To Calculate And Display Total Due Amount

Oct 6, 2009

This should calculate and display the total amount due. There are 3 radio buttons, A, B, C. Nonprofit should get a 20% discount from final charges.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radA.CheckedChanged
[Code] .....

View 5 Replies

How To Calculate Total Price Of Fruit

Jan 8, 2010

The program is for calculating an amount of fruit. I have a label saying the name of the fruit, a textbox to enter a value of 0-99 and another textbox with ReadOnly which will show the price.

A little picture here:[URL]

As you can see, the Fruit1 Etc... Is only the fruit name.
The Text box wich indicate 1-99 means the number of fruit.
The Textbox with Cash on it, means the total price.
The Calculate button, when I will push it, all the total price from all the fruit will be added together to form a total price which will be indicated in the total price textbox under the Calculate button.

When I will enter the number of fruit, if I enter 99, it give me a price.
When I will enter 60, I want that the 60 are multiplied by (let say) 0,10$
I just like to know how I can do this... Its really bothering e and I don't want to calculate all the things and make 99 line for 1 fruit cause it will be long.

The code I was using was:
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.Text = "99" Then
TextBox2.text = "10.00$"
Elseif TextBox1.Text = "98" Then
TextBox2.Text = "9,90$"
EndIf
End Sub

Until the the number of the fruit in the code reach 0. So its very long.

View 14 Replies

Pmt - Calculate Total Interest Paid?

Apr 13, 2009

I have successfully written this interest calculation, although it is based on the ppmt function and adding up the interest from each payment. This is quite a long looping process.. And it is not accurate because of the rounding of each payment. I was wondering if someone knows if there is a formula I can use, or if the pmt function is capable of this? (e.g. Mortgage payment - total interest payable over 30 years at 5% ( principle and interest repayments))?

View 1 Replies

Calculate - Display A Total Gross Earnings

Jun 15, 2009

In my form I have Gross Earnings Calculated. Then that goes to a label. I then click a button to Clear Current Employee. Then I can input another employees info to get that employees Gross Earnings. Well when I click View Summary I want to display a Total Gross Earnings. The Total Gross Earnings should be a Total of all Employees Gross Earnings.

View 4 Replies

Calculate The Total Cost Of A Parking Garage ?

Jun 21, 2010

I have a class assignment where i have to calculate the total cost of a parking garage from hours but i have to do it with a method function. So this might be a stupid question but can you read the user input values from a textbox in the function itself or do they have to be read in and recalled from the Private Sub Button1_Click section?

View 8 Replies

Calculate The Total Fare Of Taxi Journeys?

Apr 4, 2010

tell me what is wrong with this calculation. I am fairly new to vb.net so i'm not particularly clued up! I am using it to calculate the total fare of taxi journeys.

[Code]...

View 6 Replies

Calculate The Total For Bill Amounts In An Arraylist?

Oct 13, 2011

I want to calculate the total for bill amounts in an arraylist. I have already used this code:

[Code]...

View 1 Replies

Calculate The Total Spend Of The Project And Display It On Either The First Tab?

Jun 23, 2011

my question is regarding a calculation and control display that I am doing.

The application is a project tracker, and I am trying to calculate the total spend of the project and display it on either the first tab if it is an open project or the second tab if it is a completed project. For some reason, it is showing 0 for all but one of the projects. If anyones eyes can see the problem I would be really greatful. The code is below

[code]...

View 1 Replies

Calculate Total Salary According To Attending Days?

Aug 15, 2011

i want to calculate total salary according to attending days.

View 5 Replies

Calculate Total Time In Crystal Report?

Mar 14, 2010

I am creating a report in vb.net using crystal reports and need help on finding sum of dailyworkhrs in my crystal reprot. I have a feld which calculates dailyworkhrs and now i would like to find the total of it. For example:

07:30:12
08:30:10
OUTPUT Should be
16:00:22

View 6 Replies

Cannot Calculate The Total When Quantity Variable Inserted?

Nov 8, 2011

When I enter the quantity variable the script will not calculate. What am I missing ?

Public Class frmMovie
Private Property intQuantity As Integer
Private Sub txtName_TextChanged(ByVal sender As System.Object, ByVal e As [codee]....

View 1 Replies

DB/Reporting :: Calculate The Total Sum Of Each Datarow In DataRepeater II

Jul 25, 2009

Now my programm is finish and have full function, but.... it is sooo slowly with dataset/datatable/query-creater. Before I used DataContext like:

PUBLIC CLASS Main
Private db As New KontoauszugSQLDataContext
.
.
.
Privat Sub LaufendeSumme ()

[Code].....

This works much faster. May be something wrong with System or is this normal? I think it must be quicker to get a queryresult with dataset/datatable/query-creater then with the DataContext version and its update.

View 3 Replies

DB/Reporting :: Calculate Total Sum Of Each Datarow In DataRepeater

Jul 22, 2009

i want to calculate the total sum of each datarow in a DataRepeater.[code]

View 4 Replies







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