Logon Vending Machine - Purchases Deducted From Balance
Aug 26, 2010
I am making a Vending machine that requires you to logon and then you can purchase things and the purchases are deducted from your balance. The logon information as well as the balance is stored in an access file. I have the logon working well and understand everything except the things dealing with the balance. How can I make it so that when you logon it takes you to the purchase screen and The person you logged on as name and balance are shown on labels. I also don't know how to deal with balance. So when they log on and purchase the amount is detracted from their particular balance.
View 4 Replies
ADVERTISEMENT
Aug 15, 2009
I just started doing a semester of Visual Basic in college(australian), our first assignment is to make a vending machine app but so far we've only been taught basic coding such as making time converters and forms. I've tried to ask the teacher for help and she refuses to help us, she tells us its unfair. None of my friends in my class know where to start and everyone else is cheating of the internet. I just want to know how to start making the application. The vending machine must have 6 products with 10 of each, the user must put in 10c, 20c, 50c, 1 dollar and 2 dollars. Everytime the user buys something it must deduct 1. The must also be an admin function.
View 6 Replies
Jul 14, 2009
I am currently creating a vending machine program, designed to simulate a vending machine. However I have come across a rather large error, my stock is 50 at the begging. The person can go though the program and the appropiate amount of stock is taken away from the relavent object, however when I finish and want to go back to the start the last selection is still present.Therefore I have tried setting the variable as 0 when the form opens and when the program starts, but the last selection is still present.Does anyone know of a way to which I can reset this calculation without affecting my stock so I can then repeat my program cycle one or two times each time using the previous stock without reseting back to 50
View 10 Replies
Apr 19, 2010
25, .10 and .5... I cant get it to add. All it will do when each button is hit for each ammount is display that amount. Very frustrating. Here is an example of my machine:
[Code]...
View 6 Replies
Aug 23, 2009
I'm having a little trouble working with structures and using a counter for the same structure. my structure gets its data from a text file which i readoff and assign ok. Here's part of my code
[Code]....
View 9 Replies
Jan 12, 2009
I don't know really how to link 2 parts of my the transaction part of my vending machine and the restocking bit. Here is the The Restocking bit is basically adding to values from txtbx27 and 13 in the listbox and then showing the final value in the txb27, which i want to link with Transaction part of my code so that its possible to control machine's stock.
[code]...
View 4 Replies
Aug 20, 2011
I am wanting to create a logon similar to the Windows Live logon, so in other words. user has frmLogon and is located in Australia. The user enters his/her details and then the program connects to a server in the United States and checks the Username and Password to make sure it is correct if it is correct it allows the user to logon and move to the next stage, if it is wrong it will give him an error message. I am wondering if anyone has a tutorial or source code laying around that I can rip apart and see how it works. I want to put the database on my server and connect to it from my desktop using the logon form.
View 3 Replies
Apr 21, 2011
I want to take opening balance when i open a report between date parameter it show the opening balance, actually i have three columns "description" "debit" "credit" in crystal report now i want to add 1 more field which come throuhd formula which is opening balance. i have a data of debit credit from 2006. but user choose to show the data from 2008 so i want that the balcne from sum of debit and credit side between 2006 to 2007 end come in the shape of opening balance in the report and then add the debit and credit side of report into opening balance. i put a following fromual bt not accept it sum ({vr_detail.debitT})-sum({vr_detail.creditT}) > {?strtdte}
View 1 Replies
Nov 27, 2010
Im trying to add a variable that shows amount of tax deducted in a list box among other output variables. If anyone can help I would like to know how to code the lstResults.Items.Add("-$ " & Tax & " Tax") bracket to display the amount of tax deducted from the total salary wages.
Public Class Form1
'Decalirs Variables
Dim Hours As Integer
Dim Overtime As Integer
[code]....
View 3 Replies
Dec 9, 2010
I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.
View 6 Replies
Dec 21, 2010
I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads
View 2 Replies
Nov 17, 2011
im trying to get a balance from a webpage. But idk how to. I sort of figured it out. This is what im trying to get:
<div class="boxborder">
<div class="title">Balance</div>
<div class="sep"></div>
[code]....
i want to get the 12,85$ to a label.This is what im using:
Dim PageElements As HtmlElementCollection = WebBrowser1.document.GetElementsByTagName("div")
For Each CurElement As HtmlElement In PageElements
If CurElement.GetAttribute("classname") = "inner" Then
[code]....
But there are multiple classes on the webpage which have the inner as classname, so i get lots and lots of info. But i just want to get the 12,85. How would i do that?
View 3 Replies
Jul 31, 2011
I wanted to make a tool myself and check balance on multiple sites, so i dont have to login the whole time.
View 1 Replies
Jan 21, 2008
I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....
View 9 Replies
Jun 12, 2011
How do I check my Paypal balance in VB
All i want is a textbox to show current Paypal balance
View 1 Replies
Dec 29, 2009
I'm making a program that displays the balance of the three items with the input of the user input quantity.
one it cost 1.75
second cost 2.00
and 3rd cost 1.25
I need to use a sub, a function and another sub , i've tried to make a program on my own but i'm quite stuck..
[Code]...
View 12 Replies
Aug 30, 2011
Show me how to show my paypal balance in a textbox
View 2 Replies
Aug 15, 2011
show me how to show my paypal balance in a textbox
View 3 Replies
Sep 8, 2009
I am able to form the following query which is calculating the balance of Stock.
My tables in MsAccess are:
ITIdItemIdDescription
1
1
Coca Cola Normal
[CODE]...
The above query is giving error as "Error at From clause". The query will calculate the balance of stock between interval of two dates and will display it in LIstview.
View 6 Replies
Sep 2, 2011
Have my Paypal current balance show up in a textbox on VB.NET using the PayPal API.Not a VB.Net Webbrowser.url...But I keep getting the error Object reference not set to an instance of an object.when I execute this code in VB.NET:[code]
View 3 Replies
Mar 3, 2011
Here is the problem. I am to write a VB program that will take a Loan of $563 that is to be paid off with 5 monthly payments of $116. The interest Rate is 1% per month. I need to display a table giving the number of months and the balance on the loan after each month.The Table displayed should look like this:
Month Amount Owed
1 $452.63
2 $341.16
3 $228.57
4 $114.86
5 $0.00
Here is my code but I do not understand why it only shows "Month" and "Amount Owed" and nothing else.Maybe someone can point me in the right direction and I can figure it out.
[Code]...
View 4 Replies
Jun 12, 2011
How do I check my Paypal balance in VB All i want is a textbox to show current Paypal balance?
View 1 Replies
Jun 11, 2011
How do I check my Paypal balance in VB All i want is a textbox to show current PayPal balance
View 2 Replies
Aug 30, 2011
I simply want to show my PayPal balance on a textbox
View 6 Replies
Sep 2, 2011
To be clear, what I am trying to acheive is:Have my Paypal current balance show up in a textbox on VB.NET using the PayPal API Not a VB.Net Webbrowser. url...But I keep getting the error Object reference not set to an instance of an object. [code]
View 3 Replies
Jun 11, 2011
How do I check my Paypal balance in VB
All i want is a textbox to show current Paypal balance
View 5 Replies
Mar 24, 2011
I'm building a money management type application for just overall practice with Visual Basic, and I'm having issues modifying a number.It's a checkbook ledger, which stores the information in the text boxes into an access database. When you first load the screen, it asks you for your account balance (still a work in progress) which puts that data into a label on the form. When you add a record to the database, that new amount will get added/subtracted to what you typed in for your account balance.The problem I'm running into is the save function will first check if a radio button is clicked or not and negate the amount depending if you click Credit or Debit. Then after that's done, it performs the Sum aggregate function on the Amount Column in my database which puts the number into a variable. That variable is then added to the account balance that you typed in.I'll supply two of the functions that this is regarding. The Balance() function runs when you first start the form, and the Save() function is where the math happens.The accountAmount variable is declared under Public Class so that way the save function can use the variable to do the math required.
View 4 Replies
Mar 5, 2009
I'm trying to add charges to the account, specified from a textbox and change the results of the balance.It works to a point, that it adds a number (1) and then when it comes to adding another number. it kinda remembers the previous one in addition to the next one Im adding to it.I'm working with class instances too, so if there is a problem with that, please point it out. [code]
View 3 Replies
Dec 3, 2011
I am attempting to communicate with set of scales with a vb application that i have written using the comm control. The scales are a Kelba KHX-30 I can read the data from the scales but i have to manually press a button on the scale.
View 4 Replies
Oct 5, 2009
I am trying to figure out this problem for my class, and I can't even decide where to start with it. The question is: Create a Project to compute your checking account balance.Form: Include radio buttons to indicate the type of transaction: deposit check or service charge. A text box will allow the user to enter the amount of the transaction. Display the new balance in a ReadOnly text box. Calculate the balance by adding deposits and subtracting service charges and checks. Include buttons of Calculate, Clear, Print, and Exit.This question has me stumped, I dont know where to really being, this is how I decided it should work in my head, let me know if theres an easier way.They choose one of the three radio buttons and to the left of that is a text box with a submit button under. They type in there deposits and hit submit after each one, and then do the same for service charges and checks. Once they are done they hit the calculate button, which displays it in a readonly text box.
View 10 Replies