Inventory Control: Ex:No: Date
Inventory Control: Ex:No: Date
INVENTORY CONTROL
AIM: To develop a project for an Inventory control ALGORITHM: STEP 1:Start the process. STEP 2 :Start->programs->MicroSoft Visual Studio 6.0->Standard Exe
STEP 3:Design the require forms by using the controls such as label,textbox and command buttons. STEP 4:In form1, place two buttons named as purchase details and sales details
STEP 7:Using Oracle create a tables named as purchase and sales. Purchase: NAME orno iname category eqty pqty tqty rate amt NULL TYPE number(20) Varchar2(20) varchar2(20) Number(5) Number(5) Number(5) Number(5) Number(5)
Sales: NAME orno iname qty cqty NULL TYPE number(20) Varchar2(20) Number(5) Number(5)
rate amt
Number(5) Number(5)
STEP 6 :Select project -> Component -> Microsoft ADO Control(OLEDB) . STEP 7 :Place the data control in the form and set the properties to data control. STEP 8 :Write the appropriate codings for all commands to perform certain operations. STEP 9 :Save and execute the project. STEP 10:Stop the process.
NULL
STEP 3 :Enter the records into the dictionary table. STEP 4 :Start -> programs -> MS Visual Basic 6.0 -> Standard Exe.
STEP 5 : Design the form by using controls such as Label, Text box and Command buttons.
Codings: Private Sub Command2_Click() Adodc1.Recordset.Update Text1.Text = "" Text2.Text = "" End Sub
Private Sub Command3_Click() Dim intResponse As Integer intResponse = MsgBox("Are you sure you want to quit", vbYesNo + vbQuestion, "quit") If intResponse = vbYes Then End End If intResponse = MsgBox("Are you sure you want to continue", 36, "quit") If intResponse = 6 Then If intResponse = vbNo Then End End If End If End Sub
Private Sub Command4_Click() Dim r As String Dim a As String a = False r = InputBox("Enter the word to be search:") Form1.Adodc1.Recordset.MoveFirst Do While Not Form1.Adodc1.Recordset.EOF If Form1.Adodc1.Recordset.Fields("word") = r Then Text2.Text = Form1.Adodc1.Recordset.Fields("mean") a = True
Exit Do End If Form1.Adodc1.Recordset.MoveNext Loop If a = False Then MsgBox ("word not found") End If End Sub
Private Sub Command5_Click() Adodc1.Recordset.AddNew Text1.Text = " " Text2.Text = " " End Sub
Output:
Result: Thus the above application has been created, compiled and executed successfully.