0% found this document useful (0 votes)
47 views10 pages

Inventory Control: Ex:No: Date

The document describes the steps to create an inventory control application using Visual Studio and Oracle databases. It involves: 1) Designing forms using controls like labels, textboxes and buttons for purchase and sales details. 2) Creating tables in Oracle to store purchase and sales records. 3) Connecting the forms to the database using ADO controls and writing code to perform operations like adding, updating and searching records. 4) Executing the project after saving it.

Uploaded by

Suresh Raju
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views10 pages

Inventory Control: Ex:No: Date

The document describes the steps to create an inventory control application using Visual Studio and Oracle databases. It involves: 1) Designing forms using controls like labels, textboxes and buttons for purchase and sales details. 2) Creating tables in Oracle to store purchase and sales records. 3) Connecting the forms to the database using ADO controls and writing code to perform operations like adding, updating and searching records. 4) Executing the project after saving it.

Uploaded by

Suresh Raju
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

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 5:Form2 gets the purchase details.

STEP 6:Form3 gets the 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.

NAME word meaning

NULL

TYPE varchar2(20) varchar2(20)

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.

You might also like