Professional Documents
Culture Documents
Appendices Relevant Source Code Delete
Appendices Relevant Source Code Delete
DELETE
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
DataGrid1.Enabled = True
End Sub
Adodc1.Refresh
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Command6.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
CR03.Show vbModal
End Sub
Unload Me
End Sub
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.MoveNext
Else
Exit Sub
End If
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Adodc1.Refresh
End Sub
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
DataGrid1.Enabled = True
End Sub
End If
Adodc1.Refresh
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Command6.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
CR03.Show vbModal
End Sub
EDIT
Unload Me
End Sub
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Else
Exit Sub
End If
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Adodc1.Refresh
End Sub
SAVE
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Private Sub Command1_Click()
DataGrid1.Enabled = True
End Sub
End If
Adodc1.Refresh
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Command6.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
CR03.Show vbModal
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Else
Exit Sub
End If
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Adodc1.Refresh
End Sub
CLOSE
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
DataGrid1.Enabled = True
End Sub
End If
Adodc1.Refresh
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Command6.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
CR03.Show vbModal
End Sub
Unload Me
End Sub
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Exit Sub
End If
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Adodc1.Refresh
End Sub
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
Private Sub Adodc2_WillMove(ByVal adReason As
ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal
pRecordset As ADODB.Recordset)
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
DataGrid1.Enabled = True
End Sub
End If
Adodc1.Refresh
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Command6.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
CR03.Show vbModal
End Sub
Unload Me
End Sub
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Else
Exit Sub
End If
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Adodc1.Refresh
End Sub
ADD NEW
Combo1.Text = ""
Combo2.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text10.Text = ""
End Sub
Private Sub Command2_Click()
Adodc1.Refresh
Adodc1.Recordset.AddNew
Adodc1.Recordset!total = Adodc1.Recordset.RecordCount
Adodc1.Recordset!SerialNo = Text8.Text
End If
Adodc1.Recordset!Kind = Text4.Text
End If
Adodc1.Recordset!Description = Text5.Text
End If
Adodc1.Recordset!QuantityUnits = Text6.Text
End If
Adodc1.Recordset!UnitValue = Text7.Text
End If
Adodc1.Recordset!Status = Combo1.Text
End If
Adodc1.Recordset!Source = Combo2.Text
End If
Adodc1.Recordset!Remarks = Text10.Text
End If
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
Unload Me
End Sub
Adodc1.Refresh
End Sub
SEARCH
Option Explicit
Dim confirm
Adodc1.Caption = Adodc1.Recordset.RecordCount
End Sub
DataGrid1.Enabled = True
End Sub
Adodc1.Recordset.Update
Adodc1.Refresh
End Sub
frmCR01.Show vbModal
End Sub
Unload Me
End Sub
Private Sub Command5_Click()
confirm = MsgBox("Are you sure you want to delete this record!", vbYesNo,
"Information")
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
Else
Exit Sub
End If
End Sub
End If
Adodc1.Refresh
Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Command4.Visible = True
Command5.Visible = True
Adodc1.Visible = True
DataGrid1.Visible = True
DataGrid1.Enabled = False
End Sub
Adodc1.Refresh
End Sub
User’s Manual/ Users Guide
1. Turn on the computer by pressing the power button of the system unit.
2. Wait until the window is located, and then click the following in an orderly
manner.
Midsayap PNP Supply Inventory System. A splash screen will appear the log-in
form.
How to Login
On the splash screen, log in form will appear. The program itself is password
protected to ensure the programs safety and protection. Only the authorized
person knows the password to protect the program from unauthorized person who
may alter the file record in it. If log in was succeed, the main menu will be shown.
The menu bar has 3 options. The file, Search and Help.
1. On the main menu, click the file then the “Add new” and the files you want to
1. On the main menu, click search and the files you want to edit.
2. Click “save” to save the edited data to the database and to edit other record.
1. On the main menu click “ search” and the files you want to delete
2. Click “save”
On the main menu, click “search” then select among the options listed which
Options:
main menu.
4. Inventory of Firearms- click print, otherwise close to return to main
menu.
menu.
How to search
Submenus
Furniture and Fixture – Enter serial number of furniture and fixture you want
Long/ Short Firearms - Enter serial number of firearms you want to search
User’s Manual
LOGIN INTERFACE
protection. Only the authorized person knows the password to protect the program
to unauthorized person who may delete and alter the files recorded in it. If the
login succeeds, the main menu will be showed. Command button OK will be
clicked after the password will be written to continue to continue to the next form.
After the login succeed this main menu will shown, which a parent
Multiple Document Interface (MDI) is. The Multiple Document Interface (MDI)
creates application that maintains multiple forms within a single container form.
Provided in the menu bar are the File, Search and Help.
ADD INTERFACE (Inventory of Furniture and Fixture Equipment)
Figure display the inventory of Furniture and Fixture Equipment the
Display the Search Menu. If the user click the drop down button the
Display the Furniture and Fixture Equipment on the Search Interface. The
user will enter the serial number of the item and click search and the list view will
appear with the data that is searched and you will see on the status bar if how
many records were found. This form contain of Delete command button which
you can delete data on the database, Edit command button which you can edit
data on the database , Save command button which you can save data edited ,
Close command button which you can quit/close interface, and Print command
button which you can print data.
SEARCH INTERFACE OF COMMUNICATION EQUIPMENT
Display the Vehicle Equipment on the Search Interface. The user will
enter the serial number of the item and click search and the list view will appear
with the data that is searched and you will see on the status bar if how many
records were found. This form contain of Delete command button which you can
delete data on the database, Edit command button which you can edit data on the
database , Save command button which you can save data edited , Close
command button which you can quit/close interface, and Print command button
which you can print data.
SEARCH INTERFACE OF FIREARMS ISSUED
Display the Firearms Issued on the Search Interface. The user will enter
the serial number of the item and click search and the list view will appear with
the data that is searched and you will see on the status bar if how many records
were found. This form contain of Delete command button which you can delete
data on the database, Edit command button which you can edit data on the
database , Save command button which you can save data edited , Close
command button which you can quit/close interface, and Print command button
which you can print data.
SEARCH INTERFACE OF AMMUNITIONS
Display the Ammunitions on the Search Interface. The user will enter the
serial number of the item and click search and the list view will appear with the
data that is searched and you will see on the status bar if how many records were
found. This form contain of Delete command button which you can delete data
on the database, Edit command button which you can edit data on the database ,
Save command button which you can save data edited , Close command button
which you can quit/close interface, and Print command button which you can
print data.
SAMPLE OUTPUT REPORT
Inventory of Vehicle
Inventory of Ammunitions