Professional Documents
Culture Documents
E-Mail : cttewc@yahoo.com
4
1. PAYROLL PROCESSING SYSTEM
10
2. MARKSHEET PROCESSING
18
3. SAVING BANK ACCOUNT PROCESSING
28
4. INVENTORY SYSTEM
36
5. INVOICE PREPARATION SYSTEM
44
6. LIBRARY INFORMATION SYSTEM
54
7. STUDENT INFORMATION SYSTEM
62
8. INCOME TAX PROCESSING SYSTEM
73
9. ELECTRICITY BILL PREPARATION
85
10. TELEPHONE DIRECTORY MAINTENANCE
AIM:
To design a menu driven for creating a database and performing operation like
insertion,deletion,modification for payroll processing.
TABLE DESCRIPTION:
SOURCE CODE:
Unload Me
End Sub
Form1.Show
End Sub
Form2.Show
End Sub
Text3.Text = 20000
Text3.Text = 15000
Text3.Text = 10000
End If
End Sub
End If
End Sub
Adodc1.Recordset.MoveLast
End Sub
End If
End Sub
Adodc1.Recordset.AddNew
End Sub
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveLast
End Sub
Adodc1.Recordset.MoveFirst
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 6
Programming in visual Basic Subject Code:SAE51
If Adodc1.Recordset.BOF Then
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
If Adodc1.Recordset.EOF Then
Else
Adodc1.Recordset.MoveNext
End If
End Sub
OUTPUT:
PAYROLL PROCESSING
MDI FORM:
PAYROLL REPORT:
RESULT:
Thus,the table created using MS-access has been developed for payroll processing
system and insert,delete and update operation has been performed in VB.
AIM:
To design a menu editor driven application for marksheet processing system and to
perform insertion,deletion and modification using visual basic and MS access.
TABLE DESCRIPTION:
SOURCE CODE:
Unload Me
End Sub
MDIForm1.WindowState = 2
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport3.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport2.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport1.Show
End Sub
Form1.Show
End Sub
Form2.Show
End Sub
+ Val(Text6.Text) + Val(Text7.Text)
Text9.Text = (Text8.Text) / 4
Text10.Text = "FAIL"
Else
Text10.Text = "PASS"
End If
End If
Text11.Text = "FAIL"
End If
End Sub
Combo2.AddItem "I"
Combo2.AddItem "II"
Combo2.AddItem "III"
Combo2.AddItem "IV"
Combo2.AddItem "V"
Combo2.AddItem "VI"
End If
End Sub
Adodc1.Recordset.AddNew
End Sub
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
End Sub
Adodc1.Recordset.MoveFirst
End Sub
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
If Adodc1.Recordset.EOF Then
Chevalier T.Thomas College For Woman
Department of Computer Science Page 14
Programming in visual Basic Subject Code:SAE51
Adodc1.Recordset.MoveLast
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Adodc1.Recordset.MoveLast
End Sub
Adodc1.Recordset.MoveFirst
Do Until Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields(0) = a Then
GoTo a
End If
Adodc1.Recordset.MoveNext
Loop
a:
End Sub
Form1.WindowState = 2
Chevalier T.Thomas College For Woman
Department of Computer Science Page 15
Programming in visual Basic Subject Code:SAE51
End Sub
OUTPUT:
MARKSHEET PROCESSING
MDI FORM:
RESULT:
Thus,the table has been created by using MS-access for marksheet processing and
insert,delete and update operation has been performed.
AIM:
To design a menu driven program for a database application like insertion, deletion,
modification and generate a report for banking processing system.
TABLE DESCRIPTION(BANKING):
TABLE DESCRIPTION:
SOURCE CODE:
FORM1
Dim no As Integer
MsgBox Adodc1.Recordset.RecordCount
Adodc1.Recordset.MoveLast
no = Adodc1.Recordset.Fields(0) + 1
Else
no = 1
End If
Adodc1.Recordset.AddNew
Text7 = Date
Text1 = no
End Sub
End Sub
Adodc1.Recordset.Fields(4) = "Yes"
Else
Adodc1.Recordset.Fields(4) = "No"
End If
Adodc1.Recordset.Fields(5) = "Yes"
Else
Chevalier T.Thomas College For Woman
Department of Computer Science Page 19
Programming in visual Basic Subject Code:SAE51
Adodc1.Recordset.Fields(5) = "No"
End If
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
End Sub
Adodc1.Recordset.MoveFirst
'MsgBoxAdodc1.Recordset.Fields()
Displayopt
End Sub
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
Displayopt
End Sub
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Chevalier T.Thomas College For Woman
Department of Computer Science Page 20
Programming in visual Basic Subject Code:SAE51
End If
Displayopt
End Sub
Adodc1.Recordset.MoveLast
Displayopt
End Sub
WindowState = 2
End Sub
Option2.Value = True
Option3.Value = False
Else
Option2.Value = False
Option3.Value = True
End If
Option4.Value = True
Option5.Value = False
Else
Option4.Value = False
Option5.Value = True
End If
End Sub
form2
Chevalier T.Thomas College For Woman
Department of Computer Science Page 21
Programming in visual Basic Subject Code:SAE51
Else
End If
End Sub
Adodc2.Recordset.AddNew
Text3.Text = Date
End Sub
Adodc2.Recordset.Fields(0) = Val(Text1)
Adodc2.Recordset.Fields(2) = Val(Text4)
Adodc2.Recordset.Fields(6) = Text2
Adodc1.Recordset.Fields(9) = Val(Text7)
Adodc1.Recordset.Update
Adodc2.Recordset.Update
End Sub
Adodc2.Recordset.Delete
Adodc2.Recordset.MoveNext
End Sub
Text3 = Date
WindowState = 2
Chevalier T.Thomas College For Woman
Department of Computer Science Page 22
Programming in visual Basic Subject Code:SAE51
End Sub
'MsgBoxAdodc1.Recordset.Fields(1)
Adodc1.Recordset.Requery
End Sub
If KeyAscii = 13 Then
MsgBoxAdodc1.Recordset.Fields(1)
Adodc1.Recordset.Requery
End If
'/.Fields(1)
Adodc1.Recordset.MoveFirst
Do Until Adodc1.Recordset.EOF
Text2 = Adodc1
End Sub
MDI FORM
MDIForm1.WindowState = 2
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
DataReport3.Show
End Sub
If DataEnvironment1.rsCommand2.State = 1 Then
DataEnvironment1.rsCommand2.Close
End If
DataReport4.Show
End Sub
Unload Me
End Sub
Form1.Show
End Sub
Form3.Show
End Sub
Form2.Show
End Sub
OUTPUT:
MDI FORM
REPORT:
RESULT:
Thus an table has been created by using MS-Access for saving bank account and
insertion,deletion,modification and generating a report has been performed in VB.
AIM:
SOURCE CODE:
DECLARATION STATEMENT:
rsCommand1.Close
DataReport3.Show
End Sub
Unload Me
End Sub
rsCommand1.Close
DataReport2.Show
End Sub
Form1.Show
End Sub
.rsCommand1.Close
DataReport1.Show
End Sub
Form2.Show
End Sub
Adodc1.Recordset.AddNew
provisi1
Text9 = Date
Text10 = Time
End Sub
provisi1
Adodc1.Recordset.Delete
Adodc1.Recordset.MovePrevious
End Sub
Adodc1.Recordset.Update
provisi1
Chevalier T.Thomas College For Woman
Department of Computer Science Page 30
Programming in visual Basic Subject Code:SAE51
Text9 = Date
Text10 = Time
End Sub
provisi1
End Sub
Adodc1.Recordset.MoveFirst
provisi1
End Sub
provisi1
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
provisi1
Chevalier T.Thomas College For Woman
Department of Computer Science Page 31
Programming in visual Basic Subject Code:SAE51
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Else
Adodc1.Recordset.MoveNext
End If
End Sub
provisi1
Adodc1.Recordset.MoveLast
End Sub
Label8.Visible = False
Text6.Visible = False
Label9.Visible = True
Text7.Visible = True
End Sub
Label8.Visible = True
Text6.Visible = True
Label9.Visible = False
Text7.Visible = False
End Sub
End If
End Sub
End Sub
Label8.Visible = True
Text6.Visible = True
Label9.Visible = True
Text7.Visible = True
End Sub
Adodc1.Recordset.Requery
End Sub
OUTPUT:
RESULT:
Thus an table created using MS-Access has been developed for inventory system.
AIM:
TABLE DESCRPITION:
SOURCE CODE:
Unload Me
End Sub
Form1.Show
End Sub
Form2.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
If DataEnvironment1.rsCommand1.RecordCount = 0 Then
Else
MsgBoxDataEnvironment1.rsCommand1.Fields(2)
DataReport1.Sections("Section4").Controls.Item("lbloid").Caption
DataReport1.Sections("Section4").Controls.Item("lblodate").Caption
DataReport1.Sections("Section4").Controls.Item("lblcname").Caption
DataReport1.Sections("Section4").Controls.Item("lbleid").Caption
DataReport1.Sections("Section5").Controls.Item("lblpayamt").Caption
DataReport1.Sections("Section5").Controls.Item("lblmode").Caption
DataReport1.Show
End If
End Sub
txtiname.Text = Adodc1.Recordset.Fields(2)
txtprice.Text = Adodc1.Recordset.Fields(6)
End Sub
Adodc2.Recordset.MoveLast
no = Adodc2.Recordset.Fields(0) + 1
Else
no = 1001
End If
Adodc2.Recordset.AddNew
txtdate = Date
txtoid = no
cmddel.Visible = True
End Sub
Else
End If
End Sub
Adodc2.Recordset.Delete
End Sub
Adodc3.Recordset.AddNew
txtord.Text = txtoid.Text
cmddel.Visible = False
End Sub
rcount = Adodc3.Recordset.RecordCount
Adodc3.Recordset.Delete
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 39
Programming in visual Basic Subject Code:SAE51
Adodc3.Recordset.Update
flexdisplay.AddItem (txtiname.Text&vbTab&txtqty.Text&vbTab&
txtamt.Text&vbTab&txtdis.Text&vbTab&txtamtpay.Text)
txtbillamt.Text = Str$(amt)
End Sub
Adodc2.Recordset.Update
Adodc4.Recordset.AddNew
txtono.Text = txtoid.Text
End Sub
Adodc4.Recordset.Update
flexdisplay.Clear
flexdisplay.Rows = 1
amt = 0
End Sub
For i% = 0 To Adodc1.Recordset.RecordCount - 1
cbitem.AddItemAdodc1.Recordset.Fields(0)
Adodc1.Recordset.MoveNext
Next i
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 40
Programming in visual Basic Subject Code:SAE51
End Sub
OUTPUT:
INVOICE SYSTEM
MAIN FORM 1:
RESULT:
Thus the table has been created by using MS-Access is developed for invoice system
and insertion,deletion,updation and generating a result has performed in VB.
AIM:
To design a menu driven program for the database application and to perform operations
like insertion,deletion and to generate reports for library information system.
TABLE DESCRPITION:
TABLE DESCRIPTION:
TABLE DESCRIPTION:
SOURCE CODE:
FORM1 CODING
Adodc1.Recordset.Requery
Chevalier T.Thomas College For Woman
Department of Computer Science Page 44
Programming in visual Basic Subject Code:SAE51
End Sub
Text13 = Calendar1.Value
End Sub
Text33 = Calendar2.Value
End Sub
End If
End Sub
Text15.Text = Text14 + 1
Text15.Text = Text14 - 1
End If
End Sub
Adodc1.Recordset.AddNew
End Sub
End Sub
Adodc3.Recordset.Delete
End Sub
Adodc2.Recordset.Fields(4) = Val(Text15)
Adodc2.Recordset.Update
Adodc2.Recordset.Requery
Adodc3.Recordset.Fields(0) = Val(Text7.Text)
Adodc3.Recordset.Update
End Sub
End Sub
Adodc1.Recordset.Delete
Adodc1.Recordset.MovePrevious
Chevalier T.Thomas College For Woman
Department of Computer Science Page 46
Programming in visual Basic Subject Code:SAE51
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.MoveFirst
End Sub
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Adodc1.Recordset.MoveLast
Chevalier T.Thomas College For Woman
Department of Computer Science Page 47
Programming in visual Basic Subject Code:SAE51
End
Adodc3.Recordset.AddNew
End Sub
If KeyAscii = 13 Then
Adodc3.Recordset.Requery
MsgBoxAdodc2.Recordset.Fields(1)
End If
End Sub
Text12 = Date
End Sub
If KeyAscii = 13 Then
Adodc2.Recordset.Requery
MsgBoxAdodc2.Recordset.Fields(1)
End If
End Sub
If KeyAscii = 13 Then
Chevalier T.Thomas College For Woman
Department of Computer Science Page 48
Programming in visual Basic Subject Code:SAE51
wheresid = '" & Val(Text9.Text) & "'") ' & "and sid = "&Val(Text9.Text))
Adodc3.Recordset.Requery
End If
End Sub
Dim no As Integer
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport1.Sections(3).Controls(7).Caption =
DataEnvironment1.rsCommand2.RecordCount
DataReport1.Show
End Sub
Form2.Show
End Sub
Unload Me
End Sub
WindowState = 2
End Sub
If DataEnvironment1.rsCommand2.State = 1 Then
DataEnvironment1.rsCommand2.Close
DataReport2.Show
End Sub
Form1.Show
End Sub
OUPTUT:
RESULT:
Thus an MS access table developed for library information system and operation like
insertion,deletion,modification and generating a report are performed in VB.
AIM:
To write a menu driven application for creating a database and perform operation like
insertion,deletion,modification and generating report for student information system.
TABLE DESCRIPTION:
SOURCE CODE:
WindowState = 2
End Sub
Adodc1.Recordset.AddNew
End Sub
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
End Sub
Data1.Recordset.MoveFirst
End Sub
If Adodc1.Recordset.BOF Then
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 55
Programming in visual Basic Subject Code:SAE51
If Adodc1.Recordset.EOF Then
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Adodc1.Recordset.MoveLast
End Sub
GENERAL DECLARATION
WindowState = 2
End Sub
DataReport1.Show
End Sub
DataReport2.Show
End Sub
DataReport3.Show
End Sub
DataReport4.Show
End Sub
Form1.Show
Form2.Hide
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 57
Programming in visual Basic Subject Code:SAE51
Form2.Show
Form1.Hide
End Sub
Unload Me
End Sub
OUTPUT:
MDI FORM:
RESULT:
Thus an MS-ACCESS table developed for student information and operation like
insertion,deletion,modification and generating a report are performed in VB.
AIM:
To design a menu driven program for the database application and to perform operation
like insertion,deletion and to generate reports for income tax processing system.
TABLE DESCRIPTION:
TABLE DESCRIPTION:
SOURCE CODE:
Text13.Text = "0%"
Text14.Text = 0 * Val(Text12.Text)
Text13.Text = "0%"
Text14.Text = 0 * Val(Text12.Text)
Text13.Text = "10%"
Text13.Text = "10%"
Text13.Text = "20%"
Text13.Text = "20%"
End If
End Sub
Adodc1.Recordset.MoveFirst
Do Until Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields(0) = s Then
Chevalier T.Thomas College For Woman
Department of Computer Science Page 63
Programming in visual Basic Subject Code:SAE51
GoTo s
End If
Adodc1.Recordset.MoveNext
Loop
s:
End Sub
Adodc1.Recordset.AddNew
End Sub
GENERAL DECLARATION:
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
below/equaltoITamount")
DataReport1.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport2.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport3.Show
End Sub
Form1.Show
Form2.Hide
End Sub
Form2.Show
Form1.Hide
End Sub
Unload Me
End Sub
GENERAL DECLARATION:
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
below/equaltoITamount")
DataReport1.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport2.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataReport3.Show
End Sub
Form1.Show
Form2.Hide
End Sub
Form2.Show
Form1.Hide
End Sub
Unload Me
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
End Sub
Adodc1.Recordset.MoveFirst
End Sub
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Chevalier T.Thomas College For Woman
Department of Computer Science Page 68
Programming in visual Basic Subject Code:SAE51
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Adodc1.Recordset.MoveLast
End Sub
Form1.WindowState = 2
End Sub
OUTPUT:
MDI FORM:
RESULT:
Thus an Ms-access table developed for income tax processing and operation like
insertion,deletion,modification and generating report are perfomed in VB.
AIM:
To design a menu driven program for an database application and to perform operation
like insertion,deletion and to generate reports for electricity bill preparation.
TABLE DESCRIPTION:
SOURCE CODE:
FORM1 CODING
'GENERAL DECLARATION
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim s As String
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Option1.Value = True
Text1.SetFocus
flag = 0
End Sub
cn, adOpenDynamic
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Option1.Value = True
Text1.SetFocus
End Sub
If flag = 0 Then
Chevalier T.Thomas College For Woman
Department of Computer Science Page 74
Programming in visual Basic Subject Code:SAE51
'" & (Text2) & "','" & (Text3) & "','" & s & "'," &Val(Text4) & ",
" &Val(Text5) & "," & Val(Text6) & "," & Val(Text7) & ")",
cn, adOpenDynamic
Else
cuctname ='" & (Text2) & "',addr = '" & (Text3) & "',
status = '" & s & "',prvread = " & Val(Text4) & ",
crtread = " & Val(Text5) & ",unts = " & Val(Text6) & ",
cn, adOpenDynamic
End If
End Sub
flag = 1
End Sub
If rs.State = 0 Then
End If
If rs.BOF Then
Chevalier T.Thomas College For Woman
Department of Computer Science Page 75
Programming in visual Basic Subject Code:SAE51
Else
rs.MoveFirst
Display
End If
End Sub
If rs.State = 0 Then
End If
If rs.EOF Then
Else
rs.MovePrevious
If rs.BOF Then
rs.MoveFirst
End If
Display
End If
End Sub
If rs.State = 0 Then
End If
If rs.BOF Then
Else
rs.MoveNext
If rs.EOF Then
rs.MoveLast
End If
Display
End If
End Sub
If rs.State = 0 Then
End If
If rs.EOF Then
Else
rs.MoveLast
Display
End If
End Sub
WindowState = 2
cn.Open
End Sub
s = "Commercial"
Text7 = Val(Text6.Text) * 4
End If
End If
End Sub
s = "Residential"
Text7 = Val(Text6.Text) * 5
Text7 = Val(Text6.Text) * 5
End If
End If
End Sub
Text1 = rs(0)
Text2 = rs(1)
Text3 = rs(2)
Text4 = rs(4)
Text5 = rs(5)
Text6 = rs(6)
Text7 = rs(7)
Option1.Value = True
Option2.Value = True
End If
End Sub
rs(0) = Val(Text1)
rs(1) = Text2
rs(2) = Text3
rs(4) = Val(Text4)
rs(5) = Val(Text5)
rs(6) = Val(Text6)
rs(7) = Val(Text7)
rs(3) = "Commercial"
rs(3) = "Residential"
End If
End Sub
WindowState = 2
End Sub
Unload Me
End Sub
Form1.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
Chevalier T.Thomas College For Woman
Department of Computer Science Page 80
Programming in visual Basic Subject Code:SAE51
DataReport1.Show
End Sub
Form2.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
CUSTNO=" &custno)
DataReport2.Show
End Sub
OUTPUT:
ELECTRICITY BILL:
MDI FORM:
VIEW DETAILS:
REPORT:
RESULT:
Thus an MS-Access table developed for electricity bill preparation and operation like
insertion,deletion,modification and generating reports are performed in VB.
AIM:
TABLE DESCRIPTION:
SOURCE CODE:
Telephone Directory
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
DataReport1.Show
End Sub
Chevalier T.Thomas College For Woman
Department of Computer Science Page 85
Programming in visual Basic Subject Code:SAE51
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
DataReport1.Show
End Sub
Form1.Show
Form2.Hide
End Sub
Unload Me
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
DataReport1.Show
End Sub
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
End If
DataReport1.Show
End Sub
Form1.Show
Form2.Hide
End Sub
Unload Me
End Sub
Adodc1.Recordset.AddNew
End Sub
End Sub
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.Delete
End Sub
Dim a As Double
Chevalier T.Thomas College For Woman
Department of Computer Science Page 88
Programming in visual Basic Subject Code:SAE51
Adodc1.Recordset.MoveFirst
Do Until Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields(5) = a Then
GoTo a
End If
Adodc1.Recordset.MoveNext
Loop
a:
End Sub
Adodc1.Recordset.MoveFirst
End Sub
If Adodc1.Recordset.BOF Then
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
If Adodc1.Recordset.EOF Then
Else
Adodc1.Recordset.MoveNext
End If
End Sub
Adodc1.Recordset.MoveLast
End Sub
OUTPUT:
MDI FORM:
FORM 1: PROCESS:
FORM 2: VIEW:
DATA REPORT:
DATA REPORT 1 :
DATA REPORT 2:
DATA REPORT 3:
RESULT:
Thus an MS-Access table developed for telephone directory maintanence and operation like
insertion,deletion,modification and generating reports are performed in VB.