Source Code
Source Code
Source Code
SOURCE CODE
Imports System.Data.SQL
Timer2.Start()
Connection()
End Sub
If MsgBox("Do you want to exit this application?", vbYesNo + vbQuestion) = vbYes Then
Me.Close()
End If
End Sub
Imports System.Data.Sql
Imports System.Data.SqlClient
Dim ds As DataSet
1
Dim dt As New DataTable
Dim i As Integer
Connection()
loadItem()
loadItem1()
loadItem2()
GetData()
getdata1()
getLastID()
getLastID1()
getLastID2()
getLastID3()
getLastID4()
getLastID5()
End Sub
2
Dim SQLDR As SqlDataReader
With SQLCommand
.Connection = con
End With
Try
con.Close()
End If
con.Open()
SQLDR = SQLCommand.ExecuteReader
If SQLDR.Read Then
TextBox1.Text = Val(SQLDR.Item(0)) + 1
End If
con.Close()
Catch ex As Exception
TextBox1.Text = 1000
End Try
'getLastID()
End Sub
With SQLCommand
3
.Connection = con
End With
Try
con.Close()
End If
con.Open()
SQLDR = SQLCommand.ExecuteReader
If SQLDR.Read Then
TextBox7.Text = Val(SQLDR.Item(0)) + 1
End If
con.Close()
Catch ex As Exception
TextBox7.Text = 1000
End Try
'getLastID()
End Sub
With SQLCommand
.Connection = con
End With
4
Try
con.Close()
End If
con.Open()
SQLDR = SQLCommand.ExecuteReader
If SQLDR.Read Then
TextBox26.Text = Val(SQLDR.Item(0)) + 1
End If
con.Close()
Catch ex As Exception
TextBox26.Text = 1000
End Try
'getLastID()
End Sub
With SQLCommand
.Connection = con
End With
Try
con.Close()
5
End If
con.Open()
SQLDR = SQLCommand.ExecuteReader
If SQLDR.Read Then
TextBox31.Text = Val(SQLDR.Item(0)) + 1
End If
Catch ex As Exception
TextBox31.Text = 1000
End Try
con.Close()
'getLastID()
End Sub
6
9. BIBLIOGRAPHY
REFERENCESES
ONLINE REFERENCES
www.msdn.microsoft.com
www.microsoftdotnet.net
7
APPENDIX
SCREEN SHOTS
Fig.1 Login
8
9
10
11
12
13
14
15
16
17
18