54
Pharmacy Inventory and Sales Management A program design Presented to the College of Technology Cebu Technological University In Partial Fulfillment of the Requirements for Tech122 Programming 2 Nathalie Dandan Melvin A. Mantua Josh Axl P. Hubilla Nicole Tanya Luna Von Laurence N. Ybañez March 2016 I

Pharmacy Inventory and Sales Management A program design

Embed Size (px)

Citation preview

Pharmacy Inventory and Sales Management

A program design

Presented to the

College of Technology

Cebu Technological University

In

Partial Fulfillment of the Requirements for

Tech122

Programming 2

Nathalie Dandan

Melvin A. Mantua

Josh Axl P. Hubilla

Nicole Tanya Luna

Von Laurence N. Ybañez

March 2016

I

APPROVAL SHEET

This Dissertation entitled, “Pharmacy Inventory Management”, prepared and submitted by JOSH AXL P. HUBILLA, VON LAURENCE C. YBAÑEZ, NATHALIE DANDAN, NICOLE TANYA LUNA and MELVIN A. MANTUA in partial fulfillment of the requirement for the degree BACHELOR OF SCIENCE IN INFORMATION AND COMMUNICATION TECHNOLOGY, has been examined and recommended for acceptance and approval for ORAL EXAMINATION.

PROGRAM DESIGN COMMITTEE

MARIE JOY B. ALIT, MSITICT DEPT. CHAIRMAN

LEODIVINO A. LAWAS Ph. DADVISER

PANEL MEMBER

PANEL EXAMINERS

Approved by the committee on ORAL EXAMINATION with a grade ________.

MARIE JOY B. ALIT, MSITICT DEPT. CHAIRMAN

LEODIVINO A. LAWAS Ph. DADVISER MEMBER

MEMBER MEMBER

ACCEPTED AND APPROVED in partial fulfillment of the requirements for ICTP 122.

Oral Examination

MARDE T. PONCE Ph.DOIC Dean, College of

Technology

ii

Acknowledgement

We would like to extend our further thanks to the following personalities for their

beneficent support and unvarying guidance for the completion of this program.

Mr. Leodivino A. Lawas, our beloved instructor, who taught, guided and gave

consequential commentaries and advice on the process of making the program. His simple yet

very coherent style of teaching made us truly appreciate his intelligence as well as his patience.

We would also like to thank our parents for the motivation that they gave to us for the

outcome of the program and most specifically, our beloved ALMIGHTY GOD who gave us

wisdom, endurance, strength and presence of mind. Lastly, to each of us that who exerted

efforts and spent their time that made us motivated to cooperate with each other.

iii

Dedication

We dedicate this program to our families, loved ones, friends, and

especially to ALMIGHTY GOD. The great success behind of this study

would not be possible if not for the help of the people who provided us

resources in making the program.

We would also like to thank our Instructor for giving us this

opportunity to make this program so that we can apply his lessons in the

future.

“To God Be The Glory”

Table of Contents

System Abstract ……………………………………………………………………..1

Introduction……………………………………………………………………………2

Methodology…………………………………………………………………………..3

Environment…………………………………………………………………………..4

Instrument……………………………………………………………………………..5

Flowchart………………………………………………………………………...........6

Source Code…………………………………………………………………………..7

Output………………………………………………………………………………….8

Definition of Terms………………………………………………………………….9

Summary of the Design…………………………………………………………….10

Bibliography………………………………………………………………………….11

Programmer’s Profile………………………………………………………………12

System Abstract

Pharmacy Inventory Management

The program consists of very important details about Pharmacy Inventory Management that

helps you to know easier about how pharmacy stores their inventory and how they manage their

products as well as how they manage the items by the program. This system contains several

functions; save, edit, delete and search for managing items. A Pharmacy stocks inventory

system is a computerized system designed for the user to manage the stock of the drugs

inventory and monitoring the stock facilities. The stand-alone pharmacy stocks inventory system

provides an alert of expired drugs and minimum quantity of each drug and also searching

algorithm technique applied in this system. A research and analysis on the current system and

searching technique were done to get a better understanding of the system. This project was

developed using Visual Basic 6.0 and Microsoft Access 2010 as a database platform.

Introduction to the System

As we all know, a Pharmacy is a store or part of a commercial establishment in which

drugs and medicines are prepared and sold; a place in a hospital where drugs and medicines

are prepared and given out; the practice and profession of preparing drugs and medicines. We

created a program that organizes the items sold in a pharmacy. We call this program the

“Pharmacy Inventory and Sales Manager”. This program keeps a record of all the sales and

keeps a list of all the items up for sale in a pharmacy. This would help a lot of pharmacies all

over the nation and is user-friendly. The program focuses more on recording income for each

day as the program records the sales of items. Businessmen owning medical industries are in

need of this program to equally distribute their stocks to different medical stores, medical clinics

and hospitals and prevent a shortage of supply for the corporal well-being of the consumers.

Methodology

Project management is the discipline of initiating, planning, executing, controlling, and closing the work of a team to achieve specific goals and meet specific success criteria.

Figure 1: The Software Development Life Cycle, SDLC

Figure 1 Show the software development life cycle that will be implementing to develop the Pharmacy Inventory and Management System. It is will be describing according to the phases that exist in the software development life cycle.

1.1 Planning

The planning phase is the general overview of the pharmacy and the objectives. There are two (2) indicates to be focused, the initial assessment and feasibility study. Initial assessment needs to the manual system changed to the new system (PIMS), as the systematic management of the pharmacy.

For the feasibility study, it shows the hardware and software needed in general. Hardware includes the operating system is used, Windows 7 Ultimate platform, software development used Visual Basic 6.0 application, and database development used MS Access 2010.

1.2 Analysis

The analysis phase is the definition of the problem that defines at planning phase. Pharmacist and system developer identify the process of the PIMS system. It also needs for study the user

requirement and the manual system. The result is logical data design. It is the specifying the conceptual data model, inputs, processes, and expected output requirements. PIMS has nine (9) modules or processes that to be a function.

The logical design is described using data flow diagram, DFD, and entity relationship, ER diagram, ERD. The results of the logical design are entities, attribute and the relationship of the entities within the database. It also describes the function of modulus for each process within the database environment. The users that involve in the PIMS are a pharmacist, pharmacist assistance, and customer.

1.3 Detailed system design

Detailed system design phase is the completed design of the system processes. It is the specification of the PIMS interface system, menus of the system, and the reports.

1.4 Implementation

The implementation phase is starting at process installing hardware and software requirements. Installation hardware is setting up the PC desktop hardware requirements specification. The process of operating system installation is based on Windows 7 Ultimate platform installation. Visual Basic 6.0 is installing following the steps that required. This will be testing and debugging until it is ready to be delivered. The actual database is created and customizes the tables and view, and user authentication. The testing process is to be doing to test the system application operation. After testing is concluded, the final documentation is reviewed and printed, and end users are trained. The system is in full operation at the end of these phases but will be continuously evaluated and fine-tuned.

1.5 Maintenance

The maintenance phase involves when PIMS is used in several times, there are the changes of the PIMS is be a request by the pharmacist. The changes generate the system maintenance activities, which can be grouped into three types, corrective maintenance in response to system errors, adaptive maintenance due to changes in the business environment, perfective maintenance to enhance the system. For the PIMS it maybe includes these three (3) maintenance activities which are, pharmacist wants to add the module or delete the module of the PIMS application.

Environment

Nathalie Dandan Nicole Tanya Luna

In Josh’s house, they’re making the program.

Josh Axl & Melvin Nicole Tanya & Nathalie

The four of us are helping each other for the succession of the project.

Nathalie & Josh Melvin A.Mantua

They’re making the design of the program.

Melvin’s introducing the program.

Josh’s defense of the program

Nicole Tanya’s explaining the abstract of the program

INSTRUMENTS

Microsoft Office Access – Is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. Access is now much more than a way to create desktop databases. It’s an easy–to–use tool for quickly creating browser-based database applications.

Microsoft Visual Basic 6.0 – Is a third-generation event-driven programming language and Integrated Development Environment (IDE) from Microsoft for its COM programming model first released in 1991? Microsoft intended Visual Basic to be relatively easy to learn and use. Visual Basic was derived from BASIC and enables the Rapid Application Development (RAD) of Graphical User Interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation.

Microsoft Office Word – Microsoft Word is a widely used commercial word processor designed by Microsoft. Microsoft Word is a component of the Microsoft Office suite of productivity software, but can also be purchased as a stand-alone product. It was initially launched in 1983 and has since been revised numerous times. Microsoft Word is available on both Windows and Macintosh operating systems.Microsoft Word is often called simply Word or MS Word.

Paint– MS Paint can be used to draw, color and edit pictures, including imported pictures from a digital camera for example. MS Paint is found in the Windows Start menu within the Accessories Folder. It can save creations in standard formats such as .jpg and .bmp Paint can enable ‘painting’ by dragging the mouse and using different types of artistic brushes or pens that can give for example a watercolor or oil effect. The paint also ‘runs out’ on certain brushes after a period of time so that the brush needs to be put back into the color again as if it was a real painting brush.

Google Chrome – An Internet browser developed by Google Inc. that

combines a minimal design with sophisticated technology to make the Web faster, safer and easier. The Google Chrome browser offers features including access to favorite pages instantly with thumbnails, desktop shortcuts to launch Web applications, and independently run tabs within the browser to prevent browser crashing. Chrome browser is available for Windows Vista and Windows XP SP2.

Google – Originally known as BackRub, Google is a search engine that started development in 1996 by Sergey Brin and Larry Page as a research project at Stanford University. Larry and Sergey decide the name of their search engine needs to change and decide upon Google, which is inspired from the term googol. The domain google.com was later registered on September 15, 1997, and the company incorporated on September 4, 1998. The picture below is a capture of the site from The Internet Archive of what Google looked like in 1998.

YouTube – YouTube is a video-sharing website headquartered in San Bruno,

California, United States. The service was created by three former PayPal employees in February 2005. In November 2006, it was bought by Google for US$1.65 billion.[4] YouTube now operates as one of Google's subsidiaries.[5] The site allows users to upload, view, rate, share and comment on videos, and it makes use of WebM, H.264/MPEG-4 AVC, and Adobe Flash Video technology to display a wide variety of user-generated and corporate media video. Available content includes video clips, TV clips, music videos, movie trailers and other content such as video blogging, short original videos, and educational videos

Laptop – Is a portable personal computer with a clamshell form factor, suitable

for mobile use? Although originally there was a distinction between laptops and notebooks, the former being bigger and heavier than the latter, as of 2014, there is often no longer any difference. Laptops are commonly used in a variety of settings, such as at work, in education, and for personal multimedia.

Wi-Fi – (Wireless Fidelity) To connect to a Wi-Fi LAN, a computer has to be equipped with a wireless network interface controller. The combination of computer and interface controller is called a station. For all stations that share a single radio frequency communication channel, transmissions on this channel are received by all stations within range. The transmission is not guaranteed to be delivered and is, therefore, a delivery mechanism. A carrier wave is used to transmit the data. The data is organized in packets, referred to as "Ethernet frames".

Flash drive– Is a data storage device that includes flash memory with an integrated USB interface? USB flash drives are typically removable and rewritable, and physically much smaller than an optical disc. Most weigh less than 30 grams (1.1 oz.). As of January 2013, drives of up to 512 gigabytes (GB) were available. A one terabyte (TB) drive was unveiled at the 2013 Consumer Electronics Show and became available later that year. 

Computer – is a device that accepts information (in the form of digitalized data) and manipulates it for some result based on a program or sequence of instructions on how the data is to be processed. Complex computers also include the means for storing data (including the program, which is also a form of data) for some necessary duration. A program may be invariable and built into the computer (and called logic circuitry as it is on microprocessors) or different programs may be provided to the computer (loaded into its storage and then started by an administrator or user). Today's computers have both kinds of programming.

USB Cord –is an industry standard developed in the mid-1990s that define the cables, connectors and communications protocols used in a bus for connection, communication, and power supply between computers and electronic devices.[2] It is currently developed by the USB Implementers Forum.USB was designed to standardize the connection of computer peripherals (including keyboards, pointing devices, digital cameras, printers, portable media players, disk drives and network adapters) to personal computers, both to communicate and to supply electric power

`Flowchart

START

USERNAME:

PASSWORD:

LOG-IN USERNAME

LOG-IN PASSWORD:

USERNAME AND

NO

YES

OPEN FORM

TASK: LOG-IN, OR SIGN

UP

LOG-IN, OR

REGISTER

USERNAME:

PASSWORD:

REGISTER USERNAME

REGISTER PASSWORD:

USERNAME &

PASSWORD

YES

NO

DB

Item

Item name

A

A

SEARCH

DB

STOCK

Source Code

Form 1

Private Sub Form_Load()

Timer1.Enabled = True

Me.Left = (Screen.Width - Me.Width) / 2

Me.Top = (Screen.Height - Me.Height) / 2

End Sub

Private Sub Timer1_Timer()

ProgressBar1.Value = ProgressBar1.Value + 5

Label1.Caption = "Loading please wait...."

Label2.Caption = ProgressBar1.Value & "%"

If ProgressBar1.Value = ProgressBar1.Max Then

Timer1.Enabled = False

Unload Me

Form2.Show

End If

End Sub

Form 2

Private Sub Command1_Click()

If Text1.Text = "" Then

MsgBox "Username is empty"

Text1.SetFocus

Exit Sub

ElseIf Text2.Text = "" Then

Text2.SetFocus

Exit Sub

Else

Call login

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Command3_Click()

Form2.Hide

Form3.Show

End Sub

Private Sub Form_Load()

Me.Left = (Screen.Width - Me.Width) / 2

Me.Top = (Screen.Height - Me.Height) / 2

End Sub

Private Sub login()

Module1.getconnected

Dim rs As New ADODB.Recordset

rs.Open "select * from Admin Where Uname='" & Text1.Text & "'", cnn, adOpenStatic, adLockReadOnly

If rs.RecordCount < 1 Then

MsgBox "Username is invalid", vbInformation, "Login"

Text1.SetFocus

Exit Sub

Else

If Text2.Text = rs!Pword Then

Unload Me

Load Form4

Form4.Show

Exit Sub

Else

MsgBox "Invalid password", vbInformation, "Login"

Text2.SetFocus

Exit Sub

End If

End If

Set rs = Nothing

End Sub

Form 3

Private Sub Command1_Click()

If Text1.Text = "" = True Then

MsgBox "Username cannot be empty!", vbError

ElseIf Text2.Text = "" = True Then

MsgBox "Password cannot be empty!", vbError

Else

DataEnvironment1.Register Text2.Text, Text1.Text

MsgBox "User registration successful", vbInformation, "Pharmacy Manager"

Form2.Show

Form3.Hide

End If

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

End Sub

Private Sub Form_Load()

Me.Left = (Screen.Width - Me.Width) / 2

Me.Top = (Screen.Height - Me.Height) / 2

End Sub

Form 4

Option Explicit

Private confirm, stock As Integer

Private amount, change As Double

Private Sub Combo1_Click()

Set rs = New ADODB.Recordset

rs.Open "Select * from Items where DrugName = '" & Me.Combo1 & "'", cnn, adOpenKeyset, adLockOptimistic

If rs.EOF <> True And rs.BOF <> True Then

Me.Text3 = rs.Fields("Price")

Me.Text5 = rs.Fields("Stocks")

End If

End Sub

Private Sub Command1_Click()

End

End Sub

Private Sub Command10_Click()

On Error GoTo errmsg

Adodc1.Recordset.MoveNext

Exit Sub

errmsg:

MsgBox "Unable to scroll down!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command12_Click()

DataReport1.Show

DataReport1.Sections("PageFooter").Controls("Label12").Caption = Label90

DataReport1.Sections("PageFooter").Controls("Label14").Caption = Text6

DataReport1.Sections("PageFooter").Controls("Label16").Caption = Label8

End Sub

Private Sub Command2_Click()

Combo1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Label8 = ""

Label90 = ""

cnn.Execute "Delete * from Current_Sales"

DataGrid1.Refresh

Adodc1.Refresh

Set rs = Nothing

End Sub

Private Sub Command3_Click()

Dim rs As Recordset

Set rs = New Recordset

rs.CursorLocation = adUseClient

rs.Open "Select SUM(Totals) as Total from Current_Sales", cnn, 3, 3

Label90.Caption = rs!Total

'amount = Val(Text3.Text) * Val(Text2.Text)

change = Val(Text6.Text) - Label90

Label8.Caption = change

'Text4.Text = amount

If Text2.Text = "" Then

MsgBox "Please Enter the Quantity", vbInformation, "Pharmacy Manager"

ElseIf Combo1.Text = "" Then

MsgBox "Please Select an item", vbOKOnly, "Pharmacy Manager"

ElseIf Text6.Text = "" Then

MsgBox "Please Enter Customer's Money First", vbInformation, "Pharmacy Manager"

ElseIf change < 0 Then

MsgBox "Not enough Money", vbOKOnly, "Pharmacy Manager"

Else

'Label8 = Val(change)

'Text4.Text = Val(amount)

Label2.Visible = True

Label4.Visible = True

Set rs = Nothing

End If

End Sub

Private Sub Command7_Click()

On Error GoTo errmsg

Adodc2.Recordset.MoveNext

Exit Sub

errmsg:

MsgBox "Unable to scroll down!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command4_Click()

amount = Val(Text3.Text) * Val(Text2.Text)

Text4.Text = amount

Set rs = New ADODB.Recordset

rs.Open "Select * from Items where DrugName = '" & Me.Combo1 & "'", cnn, 3, 3

If rs.EOF <> True And rs.BOF <> True Then

With rs

.Fields("Stocks") = rs.Fields("Stocks") - Val(Text2.Text)

Text12.Text = rs.Fields("Stocks")

If rs.Fields("Stocks") <= -1 Then

MsgBox "Item Unavailable", vbOKOnly

ElseIf rs.Fields("Stocks") <= 50 Then

MsgBox "Low Stocks Available", vbOKOnly

ElseIf rs.Fields("Stocks") <= 10 Then

MsgBox "Very Low Stock", vbOKOnly

Exit Sub

End If

.Update

End With

If Combo1.Text = "" Then

MsgBox "Drug Name cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text2.Text = "" Then

MsgBox "Enter quantity", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text3.Text = "" Then

MsgBox "Update price", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text5.Text = "" Then

MsgBox "Out of stock", vbInformation, "Pharmacy Inventory Manager"

Else

Adodc1.Recordset.AddNew

Adodc1.Recordset("Item") = Combo1.Text

Adodc1.Recordset("Quantity") = Text2.Text

Adodc1.Recordset("Price") = Text3.Text

Adodc1.Recordset("Stocks") = Text12.Text

Adodc1.Recordset("Totals") = Val(Text4.Text)

Adodc1.Recordset.Update

Form6.Adodc1.Recordset.AddNew

Form6.Adodc1.Recordset("DrugName") = Combo1.Text

Form6.Adodc1.Recordset("Quantity") = Text2.Text

Form6.Adodc1.Recordset("Price") = Text3.Text

Form6.Adodc1.Recordset("Totals") = Val(Text4.Text)

Form6.Adodc1.Recordset("Stocks") = Text12.Text

Form6.Adodc1.Recordset("Date Sold") = Label11

Form6.Adodc1.Recordset.Update

'Call clear

DataGrid1.Refresh

End If

End If

End Sub

Private Sub Command9_Click()

On Error GoTo errmsg

Adodc1.Recordset.MovePrevious

Exit Sub

errmsg:

MsgBox "Unable to scroll up!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Form_Load()

Adodc1.Refresh

Adodc2.Refresh

Set rs = New ADODB.Recordset

rs.Open "select * from Items", cnn, 3, 3

Do While Not rs.EOF

Combo1.AddItem rs!DrugName

rs.MoveNext

Loop

Set rs = Nothing

End Sub

Private Sub inventory_Click()

Unload Me

Form6.Show

End Sub

Private Sub item_Click()

Unload Me

Form5.Show

End Sub

Sub clear()

Combo1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text6.Text = ""

Label8 = ""

Label90 = ""

Label2.Visible = False

Label4.Visible = False

End Sub

Private Sub Timer1_Timer()

Label3.Caption = Time

Label11.Caption = Date

End Sub

Form 5

Option Explicit

Private Sub Command1_Click()

If Text4.Text = "" Then

MsgBox "Drug Name cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text2.Text = "" Then

MsgBox "Manufactured Date cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text3.Text = "" Then

MsgBox "Expiry Date cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text1.Text = "" Then

MsgBox "Pricecannot be Empty", vbInformation, "Pharmacy Inventory Manager"

Else

Adodc1.Recordset.AddNew

Adodc1.Recordset("DrugName") = Text4.Text

Adodc1.Recordset("Manufactured Date") = Text2.Text

Adodc1.Recordset("Expiry Date") = Text3.Text

Adodc1.Recordset("Price") = Text1.Text

Adodc1.Recordset("Stocks") = Text5.Text

Adodc1.Recordset.Update

MsgBox "Add Successful", vbInformation, "Pharmacy Inventory Manager"

Call clear

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Command3_Click()

Dim confirm As Integer

confirm = MsgBox("Do you want to delete this?", vbYesNo + vbExclamation, "Warning message")

If confirm = vbYes Then

Adodc1.Recordset.Delete

MsgBox "Record Deleted Successfully", vbInformation, "Delete Record Confirmation"

Else

MsgBox "Record Not Deleted", vbInformation, "Record not deleted"

End If

End Sub

Sub clear()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text1.SetFocus

End Sub

Private Sub Command4_Click()

Option Explicit

Private Sub Command1_Click()

If Text4.Text = "" Then

MsgBox "Drug Name cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text2.Text = "" Then

MsgBox "Manufactured Date cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text3.Text = "" Then

MsgBox "Expiry Date cannot be Empty", vbInformation, "Pharmacy Inventory Manager"

ElseIf Text1.Text = "" Then

MsgBox "Pricecannot be Empty", vbInformation, "Pharmacy Inventory Manager"

Else

Adodc1.Recordset.AddNew

Adodc1.Recordset("DrugName") = Text4.Text

Adodc1.Recordset("Manufactured Date") = Text2.Text

Adodc1.Recordset("Expiry Date") = Text3.Text

Adodc1.Recordset("Price") = Text1.Text

Adodc1.Recordset("Stocks") = Text5.Text

Adodc1.Recordset.Update

MsgBox "Add Successful", vbInformation, "Pharmacy Inventory Manager"

Call clear

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Command3_Click()

Dim confirm As Integer

confirm = MsgBox("Do you want to delete this?", vbYesNo + vbExclamation, "Warning message")

If confirm = vbYes Then

Adodc1.Recordset.Delete

MsgBox "Record Deleted Successfully", vbInformation, "Delete Record Confirmation"

Else

MsgBox "Record Not Deleted", vbInformation, "Record not deleted"

End If

End Sub

Sub clear()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text1.SetFocus

End Sub

Private Sub Command4_Click()

If Text6.Text = "" Then

Adodc1.Recordset.MoveLast

Me.Show

Else

Adodc1.Recordset.Filter = "DrugName LIKE '" & Me.Text6.Text & "*'"

Set DataGrid1.DataSource = Adodc1.Recordset

With Adodc1.Recordset

On Error Resume Next

Text4.Text = .Fields![DrugName]

Text2.Text = .Fields![Manufactured Date]

Text3.Text = .Fields![Expiry Date]

Text1.Text = .Fields![Price]

Text5.Text = .Fields![Stocks]

End With

End If

Adodc1.Refresh

DataGrid1.Refresh

End Sub

Private Sub Command6_Click()

On Error GoTo errmsg

Adodc1.Recordset.MovePrevious

Exit Sub

errmsg:

MsgBox "Unable to scroll up!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command7_Click()

On Error GoTo errmsg

Adodc1.Recordset.MoveNext

Exit Sub

errmsg:

MsgBox "Unable to scroll down!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command8_Click()

Unload Me

Form4.Show

End Sub

Private Sub Command9_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

End Sub

Private Sub Form_Load()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

End Sub

Private Sub Text6_Change()

If Text6 <> "" Then

Adodc1.Recordset.Filter = "DrugName like '%" & Text6 & "%'"

Else

Adodc1.Refresh

End If

DataGrid1.Refresh

End SubPrivate Sub Command6_Click()

On Error GoTo errmsg

Adodc1.Recordset.MovePrevious

Exit Sub

errmsg:

MsgBox "Unable to scroll up!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command7_Click()

On Error GoTo errmsg

Adodc1.Recordset.MoveNext

Exit Sub

errmsg:

MsgBox "Unable to scroll down!", vbCritical, "Pharmacy Inventory Manager"

End Sub

Private Sub Command8_Click()

Unload Me

Form4.Show

End Sub

Private Sub Command9_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

End Sub

Private Sub Form_Load()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

End Sub

Private Sub Text6_Change()

If Text6 <> "" Then

Adodc1.Recordset.Filter = "DrugName like '%" & Text6 & "%'"

Else

Adodc1.Refresh

End If

DataGrid1.Refresh

End Sub

Form 6

Private Sub Text6_Change()

If Text6 <> "" Then

Adodc1.Recordset.Filter = "DrugName like '%" & Text6 & "%'"

Else

Adodc1.Refresh

End If

End Sub

Output

Definition of Terms

Summary of the Design

Bibliography

https://www.youtube.com/watch?v=i2uoMzgPW3Q

http://visualbasic.ittoolbox.com/groups/technical-functional/visualbasic-l/sum-of-amounts-in-datagrid-column-1885500

https://www.youtube.com/watch?v=I_-YaJGLQR8

https://www.youtube.com/watch?v=Adi3jwkta8o

http://stackoverflow.com/questions/166138/learning-vb6

https://www.daniweb.com/programming/software-development/threads/364322/print-listview-items-as-a-receipt-in-vb6-project

https://www.youtube.com/watch?v=qSlPzXGvRLQ

https://www.youtube.com/watch?v=nD93CgR9NNc

https://www.youtube.com/watch?v=gEDRy665BAg

https://www.youtube.com/watch?v=C7xAl51iJ9U

https://www.youtube.com/watch?v=K8jq2H3aamk

https://www.youtube.com/watch?v=s-BU03egpWA

https://www.youtube.com/watch?v=crU6NXnXvGE

https://www.youtube.com/watch?v=SKbOs9GqMkE

Mantua, Melvin A.

1105 M.J Cuenco Avenue, Cebu [email protected]

PERSONALINFORMATIONAge : 15 years oldSex : MaleDate of Birth : November 25, 1999Place of Birth : Cebu CityReligion : Roman CatholicHeight : 5’5”Weight : 49 kgCivil Status : SingleCitizenship : Filipino

EDUCATIONAL BACKGROUNDCourse : Bachelor of Science in Information and

Communications TechnologyTertiary : Cebu Technological University

Corner Palma St., M.J. Cuenco Ave., C.C.Secondary : Regino Mercado Night High School

(2014 – 2015)Primary : Regino Mercado Elementary School

(2010 – 2011) FAMILY BACKGROUND

Mother : Elizabeth A. MantuaOccupation : HousewifeFather : Mel S. MantuaOccupation : Brgy. Tanod

Hubilla, Josh Axl P.

1105 M.J Cuenco Avenue, Cebu [email protected]

PERSONALINFORMATIONAge : 17 years oldSex : MaleDate of Birth : February 8, 1998Place of Birth : Consolacion CebuReligion : Roman CatholicHeight : 5’5”Weight : 49 kgCivil Status : SingleCitizenship : Filipino

EDUCATIONAL BACKGROUNDCourse : Bachelor of Science in Information and

Communications TechnologyTertiary : Cebu Technological University

Corner Palma St., M.J. Cuenco Ave., C.C.Secondary : Academia delChristifidelis

(2014 – 2015)Primary : Christifidelis Learning Center

(2010 – 2011)FAMILY BACKGROUND

Mother : Genevieve HubillaOccupation : MEPZ WorkerFather : Domingo Hubilla Jr.Occupation : Businessman

Dandan, Nathalie

1105 M.J Cuenco Avenue, Cebu City

[email protected]

PERSONALINFORMATIONAge : 17 years oldSex : FemaleDate of Birth : November 13, 1998Place of Birth : Cebu CityReligion : Roman CatholicHeight : 5”Weight : 49 kgCivil Status : SingleCitizenship : Filipino

EDUCATIONAL BACKGROUNDCourse : Bachelor of Science in Information and

Communications TechnologyTertiary : Cebu Technological University

Corner Palma St., M.J. Cuenco Ave., C.C.Secondary : Cabancalan National High School

(2014 – 2015)Primary : Cabancalan Elementary School

(2010 – 2011) FAMILY BACKGROUND

Mother : Irene Dandan-ManejaOccupation : Barangay TreasurerFather : Joniefer ManejaOccupation : Merchandiser

Ybañez, Von Laurence N.

1105 M.J Cuenco Avenue, Cebu City

@gmail.com

PERSONALINFORMATIONAge : 17 years oldSex : MaleDate of Birth : April 8, 1998Place of Birth : Carcar CebuReligion : Roman CatholicHeight : 5’5”Weight : 49 kgCivil Status : SingleCitizenship : Filipino

EDUCATIONAL BACKGROUNDCourse : Bachelor of Science in Information and

Communications TechnologyTertiary : Cebu Technological University

Corner Palma St., M.J. Cuenco Ave., C.C.Secondary : Carcar Academy Technical School International

(2014 – 2015)Primary : Upland Elementary School

(2010 – 2011) FAMILY BACKGROUND

Mother : Dolores N. YbañezOccupation : Call Center AgentFather : Novo M. YbañezOccupation : Sheriff’s Office

Luna, Nicole Tanya

1105 M.J Cuenco Avenue, Cebu [email protected]

PERSONALINFORMATIONAge : 17 years oldSex : FemaleDate of Birth : July 15, 1998Place of Birth : VSMMC Cebu CityReligion : Roman CatholicHeight : 5’4”Weight : 48 kgCivil Status : SingleCitizenship : Filipino

EDUCATIONAL BACKGROUNDCourse : Bachelor of Science in Information and

Communications TechnologyTertiary : Cebu Technological University

Corner Palma St., M.J. Cuenco Ave., C.C.Secondary : Sta. Lucia National High School

(2014 – 2015)Primary : Sta. Lucia Elementary School

(2010 – 2011) FAMILY BACKGROUND

Mother : Maria Estrella L. LabaoOccupation : HousewifeFather : Warren A. LabaoOccupation : Costum Messenger