| | |
Decrement items from the database and payslip invoice
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 21
Reputation:
Solved Threads: 0
Hi all, I want to know how i can decrement the value of quantity in stock in my data base. This would be based on how times an item is purchased. So every time an item is clicked, i want to show the quantity has decreased in the database. I am using vb6 and i have my database in msaccess..
I also want to know how can i create a payslip invoice in vb6..when an item to be bought is entered, the information desplays at that area that will be printed out as an invoice..
pls help
I also want to know how can i create a payslip invoice in vb6..when an item to be bought is entered, the information desplays at that area that will be printed out as an invoice..
pls help
•
•
Join Date: Mar 2009
Posts: 837
Reputation:
Solved Threads: 153
UPDATE Table1 SET Field2=Table1.Field2-1 WHERE Field1=Value
Where Field1 = unique value to identify record and Field2 = the value you want to decrement by 1
As for creating an invoice there are several ways. Datareport, Crystal Report, or one of your own design via the Printer object. But to be able to do this you will need a purchase table to record the items purchased with some unique ID that ID's the customer so when you go to print the reciept, the table can be queried against.
Good Luck
Where Field1 = unique value to identify record and Field2 = the value you want to decrement by 1
As for creating an invoice there are several ways. Datareport, Crystal Report, or one of your own design via the Printer object. But to be able to do this you will need a purchase table to record the items purchased with some unique ID that ID's the customer so when you go to print the reciept, the table can be queried against.
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Mar 2009
Posts: 837
Reputation:
Solved Threads: 153
Either, if from vb use the command object to execute it.
As for crystal reports, yes you will need to install it. if you have pro or enterprise you should find on the disk a folder named crystal, inside is the installable. Run it and you will have crystal reports 4.5.
Good Luck
As for crystal reports, yes you will need to install it. if you have pro or enterprise you should find on the disk a folder named crystal, inside is the installable. Run it and you will have crystal reports 4.5.
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- Combobox.items and database (Pascal and Delphi)
- vb.net Saving Checkboxlist checked items to database (ASP.NET)
- Newbie SQL question (VB.NET)
- Constraint Help Please (Oracle)
- PHP, MySQL, CGI Form Help with Inventory Database (IT Professionals' Lounge)
- Error in loading items into a Dropdown list box in an ASP .net Page (ASP.NET)
- Delphi - Database Entry Total (Pascal and Delphi)
- DropDownList items (ASP.NET)
- online database help (MySQL)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Having problems with Null when running code in VB6 and MS Access
- Next Thread: How to convert vb file to exe
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





