Netlinkaccess - All about Payroll Services and Accounting
*Home>>>Payroll Program

Visual Basic .Net Payroll Program Help Please?


Dim decSellingPrice As Decimal
Dim decCost As Decimal
Dim decProfit As Decimal
Dim decLoss As Decimal

If there is a loss, the Profit or Loss BackColor is red and its ForeColor is white. If there is a Profit, the BackColor is light-grey and the ForeColor is Black.The Commission BackColor is light-grey and the ForeColor is black.The Calculate button, calculates the Profit or Loss by subtracting the cost from the selling price. Use the FormatCurrency() function to display Profit or Loss. The Commission is calculated by multiply 0.2D times the Profit or Loss. If there is a Loss, the Commission is set to $0.00.Use the FormatCurrency() function to display theCommission. You MUST use a constant which will contain 0.2D.

I have the logic down but I just started to learn to program. Please help me with this. Thank You Guys

You still have to create the button and text boxes yourself and rename the function or txt... variable names to what you need.

Hope that can get you started:

Public Sub CalcProfitLoss()
Dim decSellingPrice As Decimal
Dim decCost As Decimal
Dim decProfit As Decimal
Dim decLoss As Decimal
If decSellingPrice - decCost > 0 Then
decProfit = decSellingPrice - decCost
txtProfit = FormatCurrency(decProfit, 2)
txtCom = FormatCurrency(CalcCom( decProfit ) , 2)
Else
decLoss = decSellingPrice - decCost
txtLoss = FormatCurrency(decLoss, 2)
txtCom = FormatCurrency(CalcCom( decLoss ) , 2)
End If
End Sub

Public Function CalcCom(ByVal Amount As Double) As Double
Const CommRate As Double = 0.2
If Amount * CommRate > 0 Then
Return Amount * CommRate
Else
Return 0
End If
End Function

Tags
  Payroll Card   Payroll Tax   Payroll Accounting   Online Payroll   Adp Payroll   Payroll Program   Payroll Software   Payroll System   Payroll Processing   Payroll Services
Related information
  • How do i configure my payroll program in SQL server 2000.?

    Much too vague to answer, I'm afraid... Does your payroll program support SQL Server 2000? (Is this payroll program something you've bought? In which case what is it called? Or is it ...

  • What kind/ which program should I use to print payroll checks for a home based business?

    Office depot has pages for checks like the ones that come off of Quickbooks.

    ...
  • State that a program performs a sample payroll calculation (i.e., use text that helps to doc a prog ) in c#?

    Here is the C# adaption: using System; public class Payroll { public static void Main(string[] args) { // Prompt the user to input stuff Console.WriteLine("Enter an employee's ...

  • I want to maintain payroll in Tally 9 program , how can I ?

    Put the information in the Tally 9, and if it does work, take your Tallywhacker out and beat it.

    ...
  • How to make a program for payroll?

    you should use microsoft access.

    ...
  • How does a payroll draw program work?

    You set a specific draw amount, say $1000 a month, which would be $461.54 per paycheck if you pay every 2 weeks. When the employee's calculated commissions go over that after closing the mont...

  • Any one know where i can download a sage line 50 training program and also a sage payroll program?

    ...

  • How do you write a payroll program in c++ to calculate monthly,forthnightly &weekly empolyee salary?

    The quick answer is that you would know how to program in c++. I dont think most people would want to write that for you just to give an answer but you never know. Try using planetsourcecode an...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster