Site icon Student Projects Live

Library Automation System Project Report

Library Automation System Project Report

Here we shared Library Automation System Project Report which is developed using Visual Basic.Net and SQL Server. Complete Project Document download link is available in the bottom of this post. Library management System is a stand alone system. It is mainly used for maintaining the details regarding the books and non-books like CD-ROM’s etc and to maintain the circulation system. This product gives password protection to protect data’s from unauthorized access. Powerful Search Facility for Book and Member Search based on various Search Criteria. This software is capable of managing Book Issues, Returns, Magazine/Newspaper Subscriptions, and Calculating/Managing Fine. Generating various Reports for Record-Keeping according to end user requirements. This providing library membership facility to students, staffs.

Now the Library Automation System Project Report starts with Project Synopsis. Complete Project documentation download link at the end of this page. A library automation system project report is a document that outlines the project goals, design, development, and implementation of a library automation system. The Library Automation System Project Report includes details such as the purpose of the system, the features of the system, how it works, how it can be implemented, and the benefits of using the system. The report should also include the timeline for the project, cost estimates, and an evaluation of the project’s success.


Project Synopsis

Title  of  the  Project:

Library Automation System


Objectives:


Description of the Project:


Software  Used:


Present Working System:


SRS – SOFTWARE REQUIREMENT SPECIFICATION

Product Perspective:


Product Function:


Assumptions and Dependencies:


User Interface:


Functional Requirement:


SYSTEM ANALYSIS AND DESIGN

LEVEL 0(Context Level Diagram):


LEVEL 1 (Book/Member Entry):


LEVEL  1.1  (Add/Delete/Modify Book information):


LEVEL  1.2   (Add/Delete/Modify Student information):


DATABASE DESIGN

TABLE DESIGN:

Table:    Administrator Login (Librarian)

SL NOFIELDDATATYPEDESCRIPTION
1User_IDVarchar(20)User ID
2PasswordVarchar(20)Password

Table:     Student Login

SL NOFIELDDATATYPEDESCRIPTION
1User_IDVarchar(20)User ID
2PasswordVarchar(20)Password

Table:    Staff Login

SL NOFIELDDATATYPEDESCRIPTION
1User_IDVarchar(20)User ID
2PasswordVarchar(20)Password

Table:   College Configuration

SL NOFIELDDATATYPEDESCRIPTION
1C_CodeVarchar(20)Code Of College
2C_NameVarchar(30)Name Of College
3Reg_NoVarchar(20)Reg No Of College
5AddressVarchar(30)Address Of College
6Cont_Novarchar(30)Contact Number
7E_IDVarchar(20)E-ID Of College
8web_siteVarchar(20)WebSite of College
9Ac_Yearvarchar(30)Academic Year

Table:   Student Members

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Std_IDIntPrimary KeyStudent ID
2Std_NameVarchar(20)NotnullName Of Student
3ClassVarchar(20)NotnullClass Of Student
5YearDateTimeNotnullAcademic Year
6Ph_NoVarchar(20)NotnullPhone No
7E_IdVarchar(20)NotnullEmail Of Student
8L_ AddressVarchar(30)NotnullLocal Address
9P_AddressVarchar(30)NotnullPermanent Address

Table:   Staff Members

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Staff_IDIntPrimary KeyStaff ID
2Staf_NameVarchar(20)NotnullName Of Staff
3DesignationVarchar(20)NotnullDesignation Of Staff
5YearDateTimeNotnullAcademic Year
6Ph_NoVarchar(20)NotnullPhone No
7E-IdVarchar(20)NotnullEmail Of Staff
8L_ AddressVarchar(30)NotnullLocal Address
9P_AddressVarchar(30)NotnullPermanent Address

Table:  Books table

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Acc_NoIntPrimary KeyAccession_no of books
2TitleVarchar(20)NotnullName of book
3AuthorVarchar(20)NotnullAuthor of Book
5PublisherVarchar(20)NotnullPublisher Of Book
6CostIntNotnullCost Of Book
7Book CodeVarchar(20)NotnullCode Of Book
8CopiesIntNotnullTotal No Of Copies
9SupplierVarchar(30)NotnullSupplier of Books
10CategoryVarchar(30)NotnullType Of Book
11DOEDateTimeNotnullDate Of Entry
12YOPVarchar(20)NotnullYearOf Publication

Table:   Magazine  Table

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Acc_NoIntPrimary KeyAccession_no of Magazine
2TitleVarchar(20)NotnullTitle of Magazine
3AuthorVarchar(20)NotnullAuthor of Magazine
5PublisherVarchar(20)NotnullPublisher Of Magazine
6CostIntNotnullCost Of Magazine
7Book CodeVarchar(20)NotnullCode Of Magazine
8CopiesIntNotnullTotal No Of Copies
9SupplierVarchar(30)NotnullSupplier of Magazine
10CategoryVarchar(30)NotnullType Of Magazine
11DOEDateTimeNotnullDate Of Entry
12YOPVarchar(20)NotnullYearOf Publication

Table: Table:   Book  Transcation – Issued Books Table

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Member_IDIntNotnullID of Student
2Acc_NoIntForeign keyAccession No Of Books
3D_FromDateTimeNotnullIssued Date
4D_ToDateTimeNotnullIssued Till

Table:   Book  Transcation – Returned Books Table

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Member_IDIntNotnullID of Student
3Acc_NoIntNotnullAccession No Of Books
3No_ExceedDateTimeNotnullNumber of Exceeded Date
4FineIntNotnullFine

Tabel:   Stock Tabel

SL NOFIELDDATATYPEConstraintsDESCRIPTION
1Acc_NoIntPrimary KeyAccession no of books
2TitleVarchar(20)NotnullName of book
3AuthorVarchar(20)NotnullAuthor of Book
5PublisherVarchar(20)NotnullPublisher Of Book
6CostIntNotnullCost Of Book
7Book CodeVarchar(20)NotnullCode Of Book
8CopiesIntNotnullTotal No Of Copies
9SupplierVarchar(30)NotnullSupplier of Books
10CategoryVarchar(30)NotnullType Of Book
11DOEDateTimeNotnullDate Of Entry
12YOPVarchar(20)NotnullYearOf Publication

ER DIAGRAM

TESTING AND IMPLEMENTATION

Test Cases of Library Automation System:

Main Form :

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of Administrator ButtonThe fields for the Administrator Login is Displayed in the Another Login FormSuccessful
2On the Click of Student ButtonThe fields for the Student Login is Displayed in the Another Login FormSuccessful
4On the Click of Staff ButtonThe fields for the Staff Login is Displayed in the Another Login FormSuccessful
5On the Click of Exit ButtonExitSuccessful

Administrator Login :

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonThe Administrator Password is Correct then main menu is displayed  else Login form exitsSuccessful  
2On the click of Switch to user ButtonThis shows a main Login formSuccessful  
3On the Click of turnoff ButtonThis will exit the projectSuccessful  

Student Login :

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonThe Student Username and Password is Correct then SEARCH form is displayed  else Login form exitsSuccessful  
2On the click of Switch to user ButtonThis shows a main Login formSuccessful  
3On the Click of turnoff ButtonThis will exit the projectSuccessful  

Staff Login :

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonThe Staff Username and Password is Correct then SEARCH form is displayed  else Login form exitsSuccessful  
2On the click of Switch to user ButtonThis shows a main Login formSuccessful
3On the Click of turnoff ButtonThis will exit the projectSuccessful  

Main Menu – College – Enter Details Of College Configuration  Form :

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of UPDATE ButtonWhen the form loads the data entered at previous time will be displayed and user can change the data. Successful
2On the Click of EDIT ButtonUser can change or modify the data and then he can update.Successful
3On the Click of CLOSEThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful
4On the Click of View Detail Tab ButtonThis Shows already Added Records or the Records which is in Database .Successful

Main Menu – College – Administrator Settings Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of Change Admin password ButtonUser has to enter Old password and User Name at first then User have to enter new password. If Old User Name and Password are valid then only new password accepted, otherwise it gives an Error message.Successful
2On the Click of Change Student password ButtonUser have to enter Old password and User Name at first then User have to enter new password. If Old User Name and Password are valid then only new  password accepted, otherwise it gives an Error message.Successful
3On the Click of Change Staff password ButtonUser has to enter Old password and User Name at first then User have to enter new password. If Old User Name and Password are valid then only new password accepted, otherwise it gives an Error message.Successful
4On the click of Reset ButtonClears all fieldsSuccessful

Main Menu – Member Entry – Student Member Entry Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of ADD ButtonAt first user have to fill all fields with proper data , if any Error like entering text data instead of number or entering number instead of text..is found then it gives proper message otherwise Adds Record To the DatabaseSuccessful
2On the Click of DELETE ButtonWhich deletes the details of studentSuccessful
3On the Click of CLEAR ButtonClears all fieldsSuccessful
4On the Click of View Detail Tab Button  This Shows already Added Records or the Records which is in Database .Successful
4On the Click of Exit  ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Member Entry – Staff Member Entry Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of ADD ButtonAt first user have to fill all fields with proper data , if any Error like entering text data instead of number or entering number instead of text. is found then it gives proper message otherwise Adds Record To the DatabaseSuccessful
2On the Click of DELETE ButtonWhich deletes the details of staffSuccessful
3On the Click of CLEAR ButtonClears all fieldsSuccessful
4On the Click of View Detail Tab Button  This Shows already Added Records or the Records which is in Database.Successful
5On the Click of Exit  ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Member Entry – Change Details-Student Member Form:-

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of  Student for entered Student ID. Otherwise gives proper Error message.Successful
2On the Click of EDIT ButtonBy clicking EDIT button user can change\modify the record.Successful
3On the Click of UPDATE  ButtonModified records are  Updated in database by clicking UPDATE  button.Successful
4On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Member Entry – Change Details-Staff Member Form:-

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of  Staff  for entered Staff ID. Otherwise gives proper Error message.Successful
2On the Click of EDIT ButtonBy clicking EDIT button user can change\modify the record.Successful
3On the Click of UPDATE  ButtonModified records are  Updated in database by clicking UPDATE  button.Successful
4On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book – Book Detail Entry Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of ADD ButtonAt first user have to fill all fields with proper data , if any Error like entering text data instead of number or entering number instead of text. is found then it gives proper message otherwise Adds Record To the DatabaseSuccessful
2On the Click of CLEAR ButtonClears all fieldsSuccessful
3On the Click of View Detail Tab Button  This Shows already Added Records or the Records which is in Database.Successful
4On the Click of Exit ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book – Magazine Detail Entry Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of ADD ButtonAt first user have to fill all fields with proper data , if any Error like entering text data instead of number or entering number instead of text. is found then it gives proper message otherwise Adds Record To the DatabaseSuccessful
2On the Click of CLEAR ButtonClears all fieldsSuccessful
3On the Click of View Detail Tab Button  This Shows already Added Records or the Records which is in Database.Successful
4On the Click of EXIT  ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book –Change Detail-Change Book Detail Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonDisplays the Details of  Book for entered Accession number. Otherwise gives proper Error message.Successful
2On the Click of EDIT ButtonBy clicking EDIT button user can change\modify the record.Successful
3On the Click of UPDATE  Button  Modified records are  Updated in database by clicking UPDATE  button.Successful
4On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book –Change Detail-Change Magazine  Detail Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonDisplays the Details of  Book for entered Accession number. Otherwise gives proper Error message.Successful
2On the Click of EDIT  ButtonBy clicking EDIT button user can change\modify the record.Successful
3On the Click of UPDATE  Button  Modified records are  Updated in database by clicking UPDATE  button.Successful
4On the Click of EXIT  ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book –Remove -Remove Book   Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of  Book for entered Criteria. Otherwise gives proper Error message.Successful
2On the Click of DELETE ButtonWhich deletes the details of book Successful
3On the Click of EXIT  ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book- Remove-Remove Magazine Form:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of  Magazine for entered Criteria. Otherwise gives proper Error message.Successful
2On the Click of DELETE ButtonWhich deletes the details of Magazine  Successful
3On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book Transaction–Issuing Books:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of  Book for entered Criteria. Otherwise gives proper Error message.Successful
2On the Click of OK ButtonDisplays the Details of  Book and Library Members for entered Criteria. Otherwise gives proper Error message.Successful
3On the Click of ISSUE BOOK ButtonThis is used to issue book for library members. This Stores the information about student members and book detail in issued books table of library database.  Successful
4On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – Book Transaction–Returning Books:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of OK ButtonDisplays the Details of Books and Library Members for entered Criteria. Otherwise gives proper Error message.Successful
2On the Click of COLLECT FINE ButtonOn the click of this button it shows another form which automatically fills all the details about fine collection.Successful
3On the Click of ACCEPT BOOK ButtonOn the click of this button , it deletes the records of book collected members and details of book from issued book table of library databaseSuccessful
4On the Click of EXIT ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

Main Menu – OPAC–Search:

Sl .NoTest ConditionExpected ResultTest Result
1On the Click of SEARCH ButtonDisplays the Details of Books or Magazines for entered Criteria. Otherwise gives proper Error message.Successful
2On the Click of SHOW FULL COLLECTION ButtonDisplays the Details All Books or Magazines. Otherwise gives proper Error message.Successful
3On the Click of Clear \ Cancel ButtonThis shows a message box to confirm the user action and if it is ‘yes’ then exitsSuccessful

USER MANUAL

Main Page:

Here there are Three types of logins for the user  : Administrator Login, Student Login , and Staff Login. Administrators have all the rights such as Enter book, member details OR issuing books or magazines.


Login System:

For All users (Admin , Student, Staff)  the Login System Appears as same as shown above .User have to enter the password if it is correct then Software opens another new window.

For Administrator it opens Main menu form.

For other users it opens only SEARCH form.

For wrong password entry a message shown below is displayed :


Main Menu  ( Only for Administrator use):

In Main menu Administrator can perform these actions:


College – Enter Details Of College Form:

This form is to Enter the details of college, and the details which entered here Displayed in Main Form.

On click of EDIT button all text boxes Enabled property becomes true.

UPDATE button is used to add the modified data’s to table.

CLOSE button is used to exit


College – Administrator Settings  Form:

This is used to Change the passwords of different users.

On click of Change Admin password, Student password or Staff Password the password entered last textbox becomes new password of administrator, student or staff.


Member Entry – Enter Student Member Detail  Form:

This form is used to enter the details of student members.

ADD button is used to add the Data’s of textboxes to Student Detail Table

CLEAR button is used to clear the Records of all textboxes.

On click of CANCEL button, it Exits from the current page.


Member Entry – Enter Staff Member Detail  Form:

This form is used to enter the details of staff members.

This form is used to enter the details of student members.

ADD button is used to add the Data’s of textboxes to Student Detail Table

CLEAR button is used to clear the Records of all textboxes.

On click of CANCEL button, it Exits from the current page.


Book – Enter Book Detail Form:-

This form is used to enter the details of Books.

ADD button is used to add the Data’s of textboxes to Book Detail Table

CLEAR button is used to clear the Records of all textboxes.

On click of CANCEL button, it Exits from the current page.


Book – Enter Magazine Detail Form:-

This form is used to enter the details of Magazine.

ADD button is used to add the Data’s of textboxes to Magazine Detail Table

CLEAR button is used to clear the Records of all textboxes.

On click of CANCEL button, it Exits from the current page.


Book –Change Book Detail Form:-

This is used to Change or Modify the Book Details .

On click of EDIT button all text boxes enabled property becomes true.

On Click of EFFECT button all Records which is in textboxes are stored in Book Table .


Book –Change Magazine Detail Form:-

This is used to Change or Modify the Magazine Details .

On click of EDIT button all text boxes enabled property becomes true.

On Click of EFFECT button all Records which is in textboxes are stored in magazine Table.


Member Entry –Change Student Detail Form:

This is used to Change or Modify the Student Details.

On click of EDIT button all text boxes enabled property becomes true.

On Click of UPDATE button all Records which is in textboxes are stored in Student Detail Table.


CODING

CODE FOR LOGIN:

Private Sub Adminlog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Adminlog.Click

        Dim cnn As SqlClient.SqlConnection

        Dim dr As SqlClient.SqlDataReader

        cnn = New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

        Dim cmd As New SqlClient.SqlCommand

        cmd.Connection = cnn

        cnn.Open()

        cmd.CommandText = "select * from admin where Password='" + txt1.Text + "'"

        If txt1.Text = "" Then

            MessageBox.Show("Please Enter the Password", "Login", MessageBoxButtons.OK, MessageBoxIcon.Information)

            txt1.Focus()

            Exit Sub

        End If

        dr = cmd.ExecuteReader

        If (dr.Read()) Then

            mainmenu.Show()

            Me.Hide()

            dr.Close()

        Else

            MessageBox.Show("Invalid Password", "Login", MessageBoxButtons.OK, MessageBoxIcon.Information)

            txt1.Text = ""

            cnn.Close()

            Exit Sub

        End If

        txt1.Text = ""

    End Sub

CODE FOR CHANGE PASSWORD:-

Dim usr As String

    Dim psw As String

    Private Sub chgadmin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chgadmin.Click

        Dim cnn As New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

        Dim cmd As New SqlClient.SqlCommand

        Dim qstr As String

        Try

   If txtold.Text = "" Or txtop.Text = "" Or txtnew.Text = "" Or txtnp.Text = "" Then

                MsgBox("Enter all the fields")

            ElseIf txtnew.Text.Equals(txtnp.Text) Then

                qstr = "Update admin set Password='" & txtnp.Text & "' where User_ID='" & txtold.Text & "'"

                cmd.CommandText = qstr

                cmd.CommandType = CommandType.Text

                cmd.Connection = cnn

                cnn.Open()

                cmd.ExecuteNonQuery()

                qstr = "select * from admin "

                Dim rdr As SqlClient.SqlDataReader = cmd.ExecuteReader()

                While (rdr.Read)

                    usr = rdr("User_ID")

                    psw = rdr("Password")

                End While

                rdr.Close()

                If usr <> txtold.Text And psw <> txtop.Text Then

                    MsgBox("Your Administrator UserName And Password Is  Changed  

                        Sucessfully", MsgBoxStyle.OkOnly, "NOTE")

           Else

                    MsgBox("Sorry!!! Wrong UserName Or Password")

                End If

            Else

                MessageBox.Show("INCORRECT CONFIRMATION PASSWORD", "CHANGE PASSWORD", MessageBoxButtons.OK, MessageBoxIcon.Error)

            End If

        Catch ex As Exception

            MsgBox("Sorry !! Improper input....", MsgBoxStyle.Information, "Please...NOTE")

        End Try

   End Sub

CODE FOR ADD RECORD:

If acctxt.Text = " " Or tittxt.Text = " " Or autxt.Text = " " Or pubtxt.Text = " " Or costtxt.Text = " " Or codetxt.Text = " " Or copitxt.Text = " " Or suptxt.Text = " " Or catetxt.Text = " " Or yoptxt.Text = " " Then

            MsgBox("Pleas..Fill All the contents Properly", MsgBoxStyle.Information, "Pleas.NOTE")

        ElseIf (bdoe.Value > x) Then

            MsgBox("date should not be exceed then current date")

        ElseIf yoptxt.Text > Today.Year Then

            MsgBox("Year Should not exceed than current year")

            yoptxt.Text = ""

            yoptxt.Focus()

       Else

            Try

                Dim con = New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

                Dim cmd As New SqlClient.SqlCommand

                cmd.Connection = con

                con.Open()

                cmd.CommandText = "insert into bookdetail values(" + Trim(acctxt.Text) + " , '" + Trim(tittxt.Text) + "','" + Trim(autxt.Text) + "','" + Trim(pubtxt.Text) + "','" + Trim(costtxt.Text) + "','" + Trim(codetxt.Text) + "'," + Trim(copitxt.Text) + ",'" + Trim(suptxt.Text) + "', '" + Trim(catetxt.Text) + "','" + Trim(bdoe.Value) + "' , '" + Trim(yoptxt.Text) + "')"

                cmd.ExecuteNonQuery()

                cmd.CommandText = "insert into stockverification values(" + Trim(acctxt.Text) + " , '" + Trim(tittxt.Text) + "','" + Trim(autxt.Text) + "','" + Trim(pubtxt.Text) + "','" + Trim(costtxt.Text) + "','" + Trim(codetxt.Text) + "'," + Trim(copitxt.Text) + ",'" + Trim(suptxt.Text) + "', '" + Trim(catetxt.Text) + "','" + Trim(bdoe.Value) + "' , '" + Trim(yoptxt.Text) + "')"

                cmd.ExecuteNonQuery()

                MsgBox("You Inserted Record Stored Sucessfully", MsgBoxStyle.Information, "Please...NOTE")

                con.Close()

                            acctxt.Text = " "

                tittxt.Text = " "

                autxt.Text = " "

                pubtxt.Text = " "

                costtxt.Text = " "

                codetxt.Text = " "

                copitxt.Text = " "

                suptxt.Text = " "

                catetxt.Text = " "

                yoptxt.Text = ""

                Me.BookdetailTableAdapter.Fill(Me.BookdDataSet.bookdetail)

                Me.BookdetailTableAdapter.Update(Me.BookdDataSet.bookdetail)

            Catch ex As Exception

                MsgBox("Please..Check the inputed data correctly...OR..Check the ID..it may be repeated.", MsgBoxStyle.Information, "Please...NOTE")

            End Try

        End If

    End Sub

CODE FOR DELETE RECORD:

If criteria1.Text = "" Or criteria2.Text = "" Then

            MsgBox("Please Enter Criteria...", MsgBoxStyle.Information, "Please...NOTE")

        ElseIf criteria1.SelectedItem = "Accession No" Then

            Try

                Dim con = New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

                Dim cmd As New SqlClient.SqlCommand

                cmd.Connection = con

                con.Open()

                cmd.CommandText = "delete  from bookdetail where Acc_No = '" + Trim(criteria2.Text) + "' "

                cmd.ExecuteNonQuery()

                cmd.CommandText = "delete  from stockverification where Acc_No = '" + Trim(criteria2.Text) + "' "

                cmd.ExecuteNonQuery()

                MsgBox("Record Deleted Successfully")

                Me.BookdetailTableAdapter.Fill(Me.RembDataSet.bookdetail)               

              con.Close()

            Catch ex As Exception

                MsgBox("Sorry !! Improper Data Entry..", MsgBoxStyle.Information, "Please...NOTE ")

            End Try

      End If

CODE FOR MODIFY RECORD:

Dim ds As New DataSet

Dim sqladapter As New SqlClient.SqlDataAdapter()

Try

                Dim con = New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

                Dim cmd As New SqlClient.SqlCommand

                cmd.Connection = con

                con.Open()

                cmd.CommandText = "update studentmem set  Std_Name = '" + Trim(stdname.Text) + "',Class = '" + Trim(stdcls.Text) + "', Year ='" + Trim(stdyear.Value) + "',Ph_No = " + Trim(stdpno.Text) + ", E_Id='" + Trim(stdemail.Text) + "', L_Address = '" + Trim(stdladdress.Text) + "' , P_Address = '" + Trim(stdpaddress.Text) + "' where Std_ID like " + Trim(stdid.Text) + " "

                cmd.ExecuteNonQuery()

                MsgBox("Record Is Changed Successfully...", MsgBoxStyle.Information, "Please...NOTE")

                con.Close()

            Catch ex As Exception

                MsgBox("Sorry !! Please Try Again, Check Your Student ID is Correct Or Not", MsgBoxStyle.Information, "Please..Note")

            End Try

        End If

CODE FOR SEARCH  :

Dim ds As New DataSet

  Dim sqladapter As New SqlClient.SqlDataAdapter()

  If criteria.Text = "" Then

            MsgBox("Please fill Criteria Properly...", MsgBoxStyle.Information, "Please Note..")

        ElseIf txtbook.Text = "" Then

            MsgBox("Please fill Criteria Properly...", MsgBoxStyle.Information, "Please Note..")

        ElseIf criteria.SelectedItem = "Accession Number" Then

            Dim cnn = New SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=vcmlibrary")

            Dim cmd As New SqlClient.SqlCommand()

            Try

                cnn.Open()

                Dim qstr As String

                qstr = "select * from bookdetail where Acc_No=" + Trim(txtBook.Text)

                cmd.CommandText = qstr

                cmd.CommandType = CommandType.Text

                cmd.Connection = cnn

                cmd.ExecuteNonQuery()

                sqladapter.SelectCommand = cmd

                ds.Clear()

                Dim no As Integer

                no = sqladapter.Fill(ds, "bookdetail")

                datasearch.DataSource = ds

                datasearch.DataMember = "bookdetail"

                cnn.Close()

                If no = 0 Then

                    MsgBox("Sorry !! Entered number Is wrong..", MsgBoxStyle.Exclamation, "Please ..Note")

                End If

            Catch ex As Exception

                MsgBox(ex.ToString)

                MsgBox("Sorry !! Accession Number Is wrong..", MsgBoxStyle.Exclamation, "Please ..Note")

            End Try

       End If

Library Automation System Project Report


To know more about project visit:

Exit mobile version