Apply Discounts Depending On The Number Of Sales IE?

Nov 5, 2009

I'm trying to create a Software Sales calculator. My issue is not being able to have the lblPackageA3 to display the number as FormatCurrency after having the txtPackageA being multiplied by $99.Also need to figure out how to apply discounts depending on the number of sales IE 10-19 = 20% off

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim sngPackageA As Single
Dim sngPackageB As Single

[code]....

View 14 Replies


ADVERTISEMENT

Basic Calculation - Keeping Track Of Total Number Of Discounts

Sep 5, 2009

I am trying to keep track of the total number of discounts given (whole numbers) I keep getting .75 after the first discount, and it adds .75 for every trans action after that. I have tried to pick it apart but I just don't see it. You can follow by tracking the comments that relate to the summary. I know that is an Integer but the book has it declared as a decimal so I went with it.

Public Class BookSaleForm
'Declare module level variables
Private QuantitySumInteger, SaleCountInteger As Integer
Private DIscountSumDecimal, DiscountedPriceSumDecimal As Decimal
Const DISCOUNT_RATE_Decimal As Decimal = 0.15D
[Code] .....

View 2 Replies

Show The Track With The Greatest Number Of Sales?

Apr 5, 2010

i have a database shown on VB 2008 showing music information. i am trying to show the track with the greatest number of sales however it is only displaying the current information on the screen (i am showing the access database in multiple text boxes) rather than searching the database.

this is the section of code i am struggling with:

Private Sub Btntopseller_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btntopseller.Click
Dim index, largest As Integer

[Code]....

i also would like to add to this, i would like the user to be able to select a year from a list box to show the track with the greatest number of sales in that year.

View 3 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

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

How To Only Display Certain Lines Depending On N Number

Mar 26, 2010

I have read a text file into a textbox. The text looks like this (small snippet):
N08861 A1 P 0 A2 P 0 A3 P 0
N08862 P 0
N08870 P 0
N08900 P 00000001
What I want to do is to only display certain lines - this depends on the N number shown above.
E.G. I want the text box the display line N5000 upto N6000.

View 8 Replies

Datagridview:need It To Grow And Shrink Depending On The Number Of Rows?

Sep 22, 2011

I have a datagridview created for my windows app in 2005 and I'm not sure how to get it to grow and shrink, depending on the number of rows that are displayed. The form contains several filters for the user to use in order to get their desired recordset displayed in the grid and therefore, the size of the grid will be constantly changing. How is this usually handled?

View 10 Replies

Message Box Pops Up 100 Times, Depending On The Number Of Errors?

Jul 17, 2009

I have a list of 100 assets that are pulled from AS400 and shown on a gridview alongside a dropdown box with 6 possible status and a textbox.

If the user selects a status other than "Found" (whether it's "Not Found", "Scrapped", "Sold", "Transferred","Other"), the user cannot leave the textbox empty. They must insert a comment into the textbox. Once the user is done he clicks "Save" and if, let's say, the status is "Sold" and the textbox is empty for all assets then a Message Box pops up saying "Please fill the textbox".

The problem is, the message box pops up 100 times (or once for every asset that has the error).

1) What can I do so that the message box only appears once even when 100 assets have the error?

2) Also, when the message box appears and I click "OK" the information the user had filled up to that point gets erased.

SAVE CLICK EVENT

Protected Sub Save_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Grabar.Click
Dim comando As String = ""

[Code].....

View 4 Replies

VS 2005 - Picture Box To Change Depending On What Number Comes Up In A Textbox

Mar 20, 2010

I have a program where I want my picture box to change depending on what number comes up in a textbox. Lets just say, my picturebox is called PictureBox1. I'd imagine I'd use an IF statement followed by the path type in to change the picture. My question is how do I display a new picture in the picturebox? Whats the code used?

View 6 Replies

Crystal Reports - Adjusting Space At Runtime Depending On Number Of Lines

Mar 24, 2008

I am trying to design a report where one filed can be multiple lines and the other related field should be located below (See attached)
address may be 1 one or more lines, city state zip should be located just below.
I already have the field set to can grow, however the spacing is the issue. How do I make the spacing adjust at runtime depending on the number of lines in the field. I can space it to say 3 lines, but if the address filed is only 1 line it leaves a 3 line gap.

View 1 Replies

Save Multiple Times By Doing A LOOP Depending On The Number Of Checked Checkboxes On A Datagridview .NET 2010?

Oct 11, 2011

I have a datagridview with checkboxes in the first column and I want to do a loop on saving the serialnumber(s) when the users decides to check a number of checkboxes Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

the problem with this code is that it only inserts the serial number of the LAST checked checkbox and the number of entries of it depends on the number of checked checkbox for example ... if I checked the rows with the serialnumber 123 and 55652341, first the row with the serial number 123 then second 55652341, only 55652341 appears in the database and it is entered twice(twice because two checkboxes are checked)

View 2 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

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

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

Show Sales Data Graphically?

Nov 6, 2010

I want to show the sales data graphically.

View 2 Replies

SQL Query To Select All Sales From Certain Date

Sep 6, 2009

I have a table with these columns:
IDsales, salesDate, salesmanID, itemDesc
I need an SQL querry to select all the sales from a certain date, with the summed sales grouped by salesmanID. The problem with the querry is that the data in the salesDate field is in a long format (with dd/mm/yyyy hh:mm:sss) and I dont know how to set the querry to disregard the "time" info, and take in account the "date" part only.

View 5 Replies

VS 2008 18.15 Sales Report Application

Nov 29, 2009

I have difficulties in doing 18.15 Sales Report Application in Visual Basic 2008 pp 405-406. It doesnot look complicated, but when I really start doing it.

Here is the link for the exercise (pp 405-406), 18.15: [URL]

View 1 Replies

Add Code To Read And Use The Data From The Sales.txt File?

Jul 12, 2009

How do I (Add code to read and use the data from the Sales.txt file

2/1/07,Books,10.00
2/1/07,Games,29.99
2/1/07,Books,15.99

[code]......

View 10 Replies

Add The Sales Revenue For Each Of The Three Rows And Populate Them In Their Own Text Box?

Apr 18, 2010

I am trying to add the Sales Revenue for each of the three rows and populate them in their own text box and then get a sum of the three text boxes. For Example:

1 2 3 4 5 (15)-text box
1 2 3 4 5 (15)-text box
2 4 4 3 5 (18)-text box
-----------------------
(48)-text box

[Code].....

View 3 Replies

Cash Bill Print For Sales Receipt?

Jan 14, 2010

I want to try to make a program for the Bill Print.

View 1 Replies

Creating A Sales Tax Program In Visual Basics?

Nov 13, 2011

Assume a grocery store approached you to write a simple program that calculates total sales of purchases. The program should accept item costs as input, calculate the tax on each item (8%), then display the item cost, total cost, and total after taxes. Item costs will be added to a listbox while the total without the taxes will be displayed in a label, the tax amount in another label, and finally, the total cost (items cost + tax) in a third label. this is the problem I have to program for,

View 3 Replies

Sales Commission Program - Output Values?

Oct 21, 2009

I wrote this code and everything works as planned:
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
' Prompt user to input value for name
[Code] .....

For the finished project I am supposed to have it output the total sales and commissions for that were calculated before the sentinel value (Eugene) was entered. Here is what I tried and here is where I am lost.
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
[Code] .....

View 10 Replies

Value Of Type Sales.cakes Cannot Be Converted To Integer

Jan 25, 2012

I have a project that you enter someone's name, home town and initials saves it to an array which later is produce into a pie chart.

The question is: The class has one method called addCompetitor that takes String parameters to indicate a name, home town and initials, and an Integer to indicate the position in the tournament. The method creates a Competitor object and stores it in the corresponding element of the position array.

Public Class Cakes
Dim position(7) As Integer
Dim amountSold(7) As Double
Dim noOfCompetitors As Integer

[Code]...

View 7 Replies

Calculate And Display A 2% Commission On Sales Entered By The User And?

Mar 31, 2009

When I run this application the 2% menu item works fine but the 5% does not. It does nothing at all. I'm stuck.

[Code]...

View 2 Replies

Cannot Get Code To Function Properly For Software Sales Program?

Feb 15, 2012

i'm working on a project that is trying to calculate the discount on three different kind of packages, each worth different prices.

what we are given is
package A= $99
package B= $199

[code].....

View 6 Replies







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