Dim Units As String Dim Totaldue As Integer If Select Case Units Case 1 To 3 Totaldue = "15" Case 4 To 8 Totaldue = "14" Case Is > 8 Totaldue = "12" Case Else MessageBox.Show(Message,Marine Packing" MessageBoxButtons.OK, MessageBoxIcon.Information Else if Select Case Units Case 1 to 4 Total due="10" Case >4 Total due ="9" end select
*I know this is wrong.. what im trying to do is the order clerks will enter a name, number of units ordered, and whether the customer is a retailer or wholesaler. It shoud calculate the amount due.Use a messagebox.show method to display a message when the user enters a 0 or a negative number as the number of units. also use the messagebox.show to display a message when the user enters a letter other than W or R. im a total beginner.. struggling
*Always use code tags for your code, like this
This post has been edited by PsychoCoder: 22 October 2007 - 07:39 PM

New Topic/Question
Reply




MultiQuote




|