Hi all i have problems with this program I wrote.
This is i want would happen:
1.When the user double clicks the stock items in a listview will appear a inputbox.
2.In the inputbox the user will input how many quantity needs and to be lessen.
3.After the inputbox, the item click on listview stock items will appear in another list view and the ordered items will display there and see how many of all the total amount obtained by ordering.
MS Access i used ;My table is Stock_items and Order_items
The problem I do not know how the code and logic to do and not excellence in coding so I need your help.
First figure out the SQL statement needed to update the quantity in Stock_items and then the SQL statment needed to add a specific product code from Stock_items to Order_items.
Next store each SQL Statement in a string variable where you can change the product code and quantity for each SQL Statement.
Then create an ADO Command object, and have it execute the modified SQL Statements that you have in your string variables.
Note: You can use Access's query builder to create the queries and then switch to SQL View to get the SQL Needed to put into your string variables.
Also: When they enter the quantity to be ordered, you will need to remember both the quantity and the Stock_items product code, so that you know which product code to update and add to Order_items.
Thanks! But can you make a sample code? For reference.
Anyway how to used the query in the top of ide? Its disable not clickable can you tell me how to used it
What query at the top of the IDE?
Originally Posted by scripted
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
that's on the top located in standard toolbar in vb6 besides run.
Originally Posted by Hack
how to used it the Query?
By Srinivas Kotipalli in forum .NET
Last Post: 05-14-2002, 11:31 PM
Last Post: 12-13-2001, 01:06 PM
By Birhanu in forum VB Classic
Last Post: 11-09-2001, 04:26 PM
By John Palmer in forum VB Classic
Last Post: 06-18-2001, 01:13 PM
By Diego in forum VB Classic
Last Post: 08-28-2000, 09:15 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center