0% found this document useful (0 votes)
201 views67 pages

Movie Ticketing System

This document outlines a proposed movie ticketing system project. It includes 4 chapters that discuss the problem background and objectives of the system, the methodology used in developing it, how data will be gathered and output, and an overview of the proposed system. The proposed system would allow customers to reserve and purchase movie tickets online by selecting films, show times, and seats. It would also give administrators functions like adding, editing, and searching film data, monitoring ticket sales and inventory, and generating reports. The system is intended to streamline the ticket purchasing process for customers and theaters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
201 views67 pages

Movie Ticketing System

This document outlines a proposed movie ticketing system project. It includes 4 chapters that discuss the problem background and objectives of the system, the methodology used in developing it, how data will be gathered and output, and an overview of the proposed system. The proposed system would allow customers to reserve and purchase movie tickets online by selecting films, show times, and seats. It would also give administrators functions like adding, editing, and searching film data, monitoring ticket sales and inventory, and generating reports. The system is intended to streamline the ticket purchasing process for customers and theaters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 67

Movie

Ticketing System

Pinera, Philip Jonathan


Fuentes, Aileen Joyce
Guizzagan, Den Mark S
Dajoya, John Reuben

CEIT 03 801A
Object Oriented Programming Lecture & Laboratory

Engr. Marife Gomez

1 | Page

TABLE OF CONTENTS

CHAPTER I
THE PROBLEM AND ITS BACKGROUND . . . . . . . . . . . . . . 4
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
1.1 Background of the Study . . . . . . . . . . . . . . . . . . 4
1.2 Statement of Objective . . . . . . . . . . . . . . . . . . . . 5
1.2.1 General Problem . . . . . . . . . . . . . . . . . . . . . . .5
1.2.2 Specific Problem . . . . . . . . . . . . . . . . . . . . . . .5
1.2.3 Specific Objectives . . . . . . . . . . . . . . . . . . . . .6
1.3 Significance of the Study . . . . . . . . . . . . . . . . . . 6
1.4 Scope and Limitation . . . . . . . . . . . . . . . . . . . . . 6
CHAPTER II
METHODOLOGY OF STUDY . . . . . . . . . . . . . . . . . . . . . . . . 7-8
CHAPTER III
DATA GATHERING PROCEDURE AND OUTPUT . . . . . . . .9-10

CHAPTER IV
PROPOSED SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1 System Overview . . . . . . . . . . . . . . . . . . . . . . . . . .11
4.2 Process Specification . . . . . . . . . . . . . . . . . . . . . .12-13
4.3 Data Specification . . . . . . . . . . . . . . . . . . . . . . . . .13

2 | Page

4.4 Screen Layout / Specification . . . . . . . . . . . . . . . 13-16

CHAPTER I

THE PROBLEMS AND ITS BACKGROUND

Introduction
Our Movie Ticketing System is an Offline system. This system can be injected in any computer at
the ticket booth, providing a more convenient way for a customer to buy cinema tickets. With this system,
3 | Page

Staff can easily insert, delete and edit data from the application and will automatically update the
database. Also, staff can check the statistics information from the system so that they can easily monitor
their inventories.

1.1 Background of the Study


Movie ticketing system is basically made for providing the customer an anytime service for booking
the seat in the cinema and to gather information about the movies. The user can easily be able to know
about the movies released and then make their choice.
Today, it is believed that the application of computer technology in any activity would go a long way in
making that activity much easier. With the use of different computer applications monitoring, inventory,
reservation and sales are now becoming much easier.

1.2 Statement of Object


1.2.1 General Problem
Before, In Cinemas and Concert Halls, the buyer of a ticket was forced to select from the
seats that had been allotted to the particular vendor from whom he or she was purchasing the ticket. If the
vendor was nearly sold out, the buyer might be forced to buy bad seats even though better seats were
available through other ticket sellers. This type of ticketing procedures was inefficient for promoters and
owners of venues, who often had difficulty selling all of their tickets, despite unmet demand.

1.2.2 Specific Problem

4 | Page

Innovative computer program that will provide Ticketing System Assistance is very needed in
such a way that a person buying an event ticket at a box office could quickly select from the total reserve
of seats available. A kind of system that will cater a good transaction between the ticket buyer and the
promoters.

1.2.3 Specific Objectives

Quick and Easy Seats reservation


To minimize the number of Staffs needed
The system aimed to provide the customer the complete information of the movie,
according to which the customer can book the tickets.

1.3 Significance of the Study


Developing this Movie Ticketing System will lessen the long queue in reserving a seat, and the long
wait of the viewers for the time the movie will be play. This system will able to reserve the best seat that
the viewer wants.

1.4 Scope and Limitation


This Movie Ticketing System can store movies information that the admin wants to store and saves
it in a database automatically. The system can Add, Delete, Edit and Search for any Movie that was stored
in database. Even though the system can handle many movies, it can only cater 3 movies for movie seats
5 | Page

reservation. The system can compute for the ticket payment, let the ticket buyer choose the seats and
schedule he wants, and display the number of seats available

CHAPTER II

METHODOLOGY OF THE STUDY

Collection of Data
All of the information needed for this study was all came from internet. We do a lot of research and
browsing from the web. Watching tutorials at YouTube and reading some blogs and other sites that offers
online tutorial. We also observe some online movie ticketing sites so that we can get some ideas on what
are the things we needed to consider in creating this study.

General Requirements (functional)


Creating a list of requirements or objective that research study should come up with:
1.

The Application (e.g. The time table page, the main page) will be generated automatically
according to the data in database.

2.

A way in which the staff can login to the system to perform administrative operation.

3.

A way in which the customer can place an order by just choosing the seat (which is shown on the

6 | Page

screen)

4.

A way in which the staff can use the system to add data to the database.

5.

The system can verify the data before transaction.

6.

The system can generate some statistic information according booking and ticket selling record.

7.

Users can check film data by clicking on a certain film on main page (e.g. The cinema which will
show this films).

CHAPTER III
Data Gathering Procedure and Output

7 | Page

Choosing the Application Needed


This research study aims to create an innovative system using a database application. There are
different ways in making a database but the most common and one of the easiest way is to use the
Microsoft Access and Connect it to Visual Basic 6.0. In creating a database using Access you will be
needing to create a table, a table contains Fields and its corresponding Data Type. Table must be save in
order to locate it in Visual Basic. In order to connect the database and visual basic, right data source must
be selected and link the data source to the application correctly.

Designing the Application


The system should sustain all tasks necessary for any customer to make the cinema experience
nice and easy. This system is supposed to work in a way that all necessary tasks can be done solely by
the user. In order to make sure the system will work properly Designing the Application is the most critical
step. Every buttons, labels, frames, textbox, etc. must be allocated properly to its designated function.
Application must equip with error handling solutions and error handling messages.

Testing the Application


The system must undergo in different test where in every input buttons and labels must be checked
together with its corresponding output. In this step the list of objectives we have made earlier must be
accomplished and no errors must be detected.

8 | Page

CHAPTER IV
Proposed System

Movie Ticketing System is a database system capable of manipulating movie information wherein
the user can add, edit, delete and search movie data in it. The system is also capable of seats reservation
and seats monitoring.

4.1 System Overview


The proposed system is having a security operation where in only the admin can log in the system.
After the Log in Screen it will automatically open the Home Screen, that contains all the Menu that can be
used to operate the system. In the Movie Menu, Admin can edit the database where all the movies
information was stored. Here admin can Add movies, Delete Movies, Edit Movies and Search Movies. In
Reservation Menu, this is the Screen where Admin and the customer can interact. It contains list of
9 | Page

movies and seat plan where the customer can choose what to watch and where to seats. Also in this
screen Admin can compute the payment of customer. In the Inventory Menu, this is where the admin can
monitor booking and ticket selling record

4.2 Process Specification


When the system run, The Loading Screen will open first, when the loading screen done loading
the system data, a log in screen will appear. Only admin can Log in in the system. Once the admin logged
in successfully a message box will appear indicating a successful log in, and then the Home screen will
Pop up.
The Home screen contains the Menu and each menu contains different commands. The Home
Menu will be your connection to get back to home screen.
The Movie Menu will give you the access of Movie Information Editing, here you can add a movie
and store it automatically in database, you can also delete movie from here that will delete the data
automatically in database also. It was also equipped with search button to easily find the movie you want.
If you want to put photo in your movie, an additional command button was designed for it. Once you
clicked a movie and click the Add Picture Button, you can easily browse and choose a picture of your
desired movie photo which will be automatically save in your database.
In The Reservation Menu, customer can choose the movie he wants to watch, Once the customer
picked a movie the admin will ask the customer how many movie ticket he wants to buy, then the number
of tickets wants to buy by the customer will be inputted in the designated textbox then when the admin
click the command button the total payment of the customer will be shown. Then The admin will let the

10 | P a g e

customer pick the schedule and the seats it wants. After the customer picked the admin will now click save
and the data will be automatically stored in database.
In the Inventory Menu, admin can monitor all the transaction of the system and the Log out button
will let the admin go back to log in screen.

4.3 Data Specification

4.4 Screen Layout / Specification

11 | P a g e

12 | P a g e

13 | P a g e

System Application Codes:


Loading Screen
Private Sub Form_Load()

14 | P a g e

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
lblstatus.Caption = "Loading... Pls Wait"
lblstat.Caption = ProgressBar1.Value & "%"
If ProgressBar1.Value = ProgressBar1.Max Then
Timer1.Enabled = False
Unload Me
Welcome.Show
End If
End Sub

Welcome Screen
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub logbtn_Click()
Login.Show
Me.Hide
Register.Hide
End Sub
Private Sub Regbtn_Click()
Register.Show
Login.Hide
Welcome.Hide
End Sub

Log-In Screen
Private Sub Cancel_Click()
Welcome.Show

15 | P a g e

Me.Hide
End Sub
Private Sub loginbtn1_Click()
loginado.RecordSource = "Select * from Log1 where Username = '" + txtuser.Text + "' and password = '"
+ txtpass.Text + "' "
loginado.Refresh
If loginado.Recordset.EOF Then
MsgBox "Login Failed... Please Login with correct credentials", vbCritical
Login.Show
Else
MsgBox "Well Done.. Login Successfull", vbInformation
Ticket.Show
Login.Hide
txtuser.Text = ""
txtpass.Text = ""
End If
End Sub
Private Sub loginbtn2_Click()
loginado.RecordSource = "Select * from Log where Username = '" + txtuser.Text + "' and password = '"
+ txtpass.Text + "' "
loginado.Refresh
If loginado.Recordset.EOF Then
MsgBox "Login Failed... Please Login with correct credentials", vbCritical
Login.Show
Else
MsgBox "Well Done.. Login Successfull", vbInformation
Ticket2.Show
Login.Hide
txtuser.Text = ""
txtpass.Text = ""
End If
End Sub

Home Screen
Private Sub Form_Load()

16 | P a g e

Timer2.Enabled = False
Timer3.Enabled = False
End Sub
Private Sub mnuHome_Click()
Ticket.Show
End Sub
Private Sub mnuInventory_Click()
Inventory.Show
Me.Hide
End Sub
Private Sub mnuLogout_Click()
Welcome.Show
Me.Hide
End Sub

Private Sub mnuMovie_Click()


Movie.Show
Me.Hide
End Sub
Private Sub mnuReservation_Click()
Reservation.Show
Me.Hide
End Sub
Private Sub Timer1_Timer()
Picture3.Visible = False
Picture1.Visible = True
Timer2.Enabled = True
Timer1.Enabled = False
End Sub

Private Sub Timer2_Timer()


Picture1.Visible = False
Picture2.Visible = True
Timer3.Enabled = True
Timer2.Enabled = False
End Sub

17 | P a g e

Private Sub Timer3_Timer()


Picture2.Visible = False
Picture3.Visible = True
Timer1.Enabled = True
Timer3.Enabled = False
End Sub

Movie Screen
Private Sub CboName_Click()
Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie where movienam ='" & CboName.Text & "'", cn, 2, 3
txtmovie.Text = !movienam
txtdirector.Text = !moviedir
txtrating.Text = !movierat
txtlength.Text = !movielen
txtdescription.Text = !moviedes
txtamount.Text = !movieamo
Label4.Caption = !moviepic
Image1.Picture = LoadPicture(Label4.Caption)
End With
End Sub
Private Sub CboName_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then

Set rs = New ADODB.Recordset


With rs
.Open "Select * from movie where movienam ='" & CboName.Text & "'", cn, 2, 3
On Error GoTo notfind
txtmovie.Text = !movienam
txtdirector.Text = !moviedir
txtrating.Text = !movierat
txtlength.Text = !movielen
txtdescription.Text = !moviedes
txtamount.Text = !movieamo
Label4.Caption = !moviepic

18 | P a g e

Image1.Picture = LoadPicture(Label4.Caption)

End With
End If
Exit Sub
notfind:
MsgBox "Record not fount", vbInformation, "Message"
CboName.SetFocus
SendKeys "+{home}+{end}+"
End Sub

Private Sub CmdAdd_Click()


Clear
FrList.Enabled = False
FrEntry.Enabled = True
txtmovie.SetFocus
CmdSave.Enabled = True
CmdCancel.Enabled = True
cmdAddPic.Enabled = True
FrName.Enabled = False
CmdDelete.Enabled = False
CmdEdit.Enabled = False
CmdAdd.Enabled = False
CmdExit.Enabled = False
LblAdd_Edit.Caption = "ADD"
Image1.Picture = Nothing
End Sub

Private Sub cmdAddPic_Click()


CommonDialog1.FileName = ""
CommonDialog1.Filter = "JPEG Files|*.jpg|GIF Files|*.gif|All Files|*.*"
CommonDialog1.ShowOpen
Label4 = CommonDialog1.FileName

If Len(Trim(Label4)) < 1 Then


Exit Sub

19 | P a g e

End If
Image1.Picture = LoadPicture(Label4)
End Sub

Private Sub CmdCancel_Click()


Save_Cancel
End Sub
Private Sub CmdDelete_Click()
If txtmovie.Text = "" Then: MsgBox "Please select from the list first!", vbInformation, "Message": Exit Sub
Sub

If MsgBox("Do you want to delete this record ?", vbQuestion + vbYesNo, "Message") = vbNo Then: Exit
Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie", cn, 2, 3
Do While Not .EOF
If txtmovie.Text = !movienam Then
.Delete
.Update

Form_Activate
Clear
Exit Do
Else
.MoveNext
End If
Loop
End With
End Sub
Sub Clear()
txtmovie.Text = ""
txtdirector.Text = ""
txtrating.Text = ""
txtlength.Text = ""
txtdescription.Text = ""
txtamount.Text = ""

20 | P a g e

End Sub
Private Sub CmdEdit_Click()
If txtmovie.Text = "" Then: MsgBox "Please select from the list first!", vbInformation, "Message": Exit Sub
FrList.Enabled = False
FrEntry.Enabled = True
txtmovie.SetFocus
CmdSave.Enabled = True
CmdCancel.Enabled = True
cmdAddPic.Enabled = True
FrName.Enabled = False
CmdDelete.Enabled = False
CmdEdit.Enabled = False
CmdAdd.Enabled = False
CmdExit.Enabled = False
LblAdd_Edit.Caption = "EDIT"
End Sub
Private Sub CmdExit_Click()
Ticket.Show
Me.Hide
Set FrmInfo = Nothing
End Sub

Private Sub CmdSave_Click()

Set rs = New ADODB.Recordset


With rs
.Open "Select * from movie", cn, 2, 3

If LblAdd_Edit.Caption = "ADD" Then


If MsgBox("Do you want to save this new rocord?", vbQuestion + vbYesNo, "Message") = vbNo Then:
Exit Sub
.AddNew
!movienam = txtmovie.Text
!moviedir = txtdirector.Text
!movierat = txtrating.Text

21 | P a g e

!movielen = txtlength.Text
!moviedes = txtdescription.Text
!movieamo = txtamount.Text
!moviepic = "" & Label4.Caption
.Update
Else
If MsgBox("Do you want to save this changes?", vbQuestion + vbYesNo, "Message") = vbNo Then: Exit
Sub
Do While Not .EOF

If LvList.SelectedItem.Text = !movienam Then


!movienam = txtmovie.Text
!moviedir = txtdirector.Text
!movierat = txtrating.Text
!movielen = txtlength.Text
!moviedes = txtdescription.Text
!movieamo = txtamount.Text
!moviepic = "" & Label4.Caption
.Update

Exit Do
Else
.MoveNext
End If
Loop
End If

End With

Form_Activate
Save_Cancel
Image1.Picture = Nothing

End Sub
Sub Save_Cancel()
Clear

22 | P a g e

FrList.Enabled = True
FrEntry.Enabled = False
CmdSave.Enabled = False
CmdCancel.Enabled = False
FrName.Enabled = True
CmdDelete.Enabled = True
CmdEdit.Enabled = True
CmdAdd.Enabled = True
CmdExit.Enabled = True
CboName.SetFocus
End Sub
Private Sub Form_Activate()
display_list
ComboName_list
End Sub

Sub display_list()
Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie", cn, 2, 3
LvList.ListItems.Clear
Do While Not .EOF
LvList.ListItems.Add(1).Text = !movienam
LvList.ListItems.Item(1).ListSubItems.Add.Text = !moviedir
LvList.ListItems.Item(1).ListSubItems.Add.Text = !movierat
LvList.ListItems.Item(1).ListSubItems.Add.Text = !movielen
LvList.ListItems.Item(1).ListSubItems.Add.Text = !moviedes
LvList.ListItems.Item(1).ListSubItems.Add.Text = !movieamo

.MoveNext
Loop

End With
End Sub
Sub ComboName_list()

23 | P a g e

Set rs = New ADODB.Recordset


With rs
.Open "Select * from movie", cn, 2, 3
CboName.Clear
Do While Not .EOF
CboName.AddItem !movienam
.MoveNext
Loop

End With
End Sub

Private Sub Form_Load()


connection
End Sub

Private Sub LvList_ItemClick(ByVal Item As MSComctlLib.ListItem)


Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie where movienam ='" & LvList.SelectedItem.Text & "'", cn, 2, 3
' Do While Not .EOF

' If !movienam = LvList.SelectedItem.Text Then

txtmovie.Text = !movienam
txtdirector.Text = !moviedir
txtrating.Text = !movierat
txtlength.Text = !movielen
txtdescription.Text = !moviedes
txtamount.Text = !movieamo
Label4.Caption = !moviepic
Image1.Picture = LoadPicture(Label4.Caption)

24 | P a g e

'

Exit Do

' Else
' .MoveNext
'

End If
' Loop

End With

End Sub

Private Sub mnuHome_Click()


Ticket.Show
Me.Hide
End Sub

Private Sub mnuInventory_Click()


Inventory.Show
End Sub

Private Sub mnuLogout_Click()


Welcome.Show
Me.Hide
End Sub

Private Sub mnuMovie_Click()


Movie.Show
Me.Hide

End Sub

Private Sub mnuReservation_Click()


Reservation.Show
Me.Hide
End Sub

25 | P a g e

Reservation Screen

Private Sub cmdReserve_Click()


Me.Hide
seats.Show
End Sub

Private Sub Check79_Click()

End Sub

Private Sub Check13_Click()

End Sub

Private Sub CheckA1_Click()


If CheckA1.Value Then
txtseat.Text = "A1"
Text6.Text = "Reserve"
End If
CheckA1.Enabled = False
End Sub

Private Sub CheckA10_Click()


If CheckA10.Value Then
txtseat.Text = "A10"
Text6.Text = "Reserve"
End If
CheckA10.Enabled = False
End Sub

Private Sub CheckA11_Click()


If CheckA11.Value Then
txtseat.Text = "A11"
Text6.Text = "Reserve"
End If

26 | P a g e

CheckA11.Enabled = False
End Sub

Private Sub CheckA12_Click()


If CheckA12.Value Then
txtseat.Text = "A12"
Text6.Text = "Reserve"
End If
CheckA12.Enabled = False
End Sub

Private Sub CheckA13_Click()


If CheckA13.Value Then
txtseat.Text = "A13"
Text6.Text = "Reserve"
End If
CheckA13.Enabled = False
End Sub

Private Sub CheckA14_Click()


If CheckA14.Value Then
txtseat.Text = "A14"
Text6.Text = "Reserve"
End If
CheckA14.Enabled = False
End Sub

Private Sub CheckA15_Click()


If CheckA15.Value Then
txtseat.Text = "A15"
Text6.Text = "Reserve"
End If
CheckA15.Enabled = False
End Sub

Private Sub CheckA16_Click()

27 | P a g e

If CheckA16.Value Then
txtseat.Text = "A16"
Text6.Text = "Reserve"
End If
CheckA16.Enabled = False
End Sub

Private Sub CheckA17_Click()


If CheckA17.Value Then
txtseat.Text = "A17"
Text6.Text = "Reserve"
End If
CheckA17.Enabled = False
End Sub

Private Sub CheckA18_Click()


If CheckA18.Value Then
txtseat.Text = "A18"
Text6.Text = "Reserve"
End If
CheckA18.Enabled = False
End Sub

Private Sub CheckA19_Click()


If CheckA19.Value Then
txtseat.Text = "A19"
Text6.Text = "Reserve"
End If
CheckA19.Enabled = False
End Sub

Private Sub CheckA2_Click()


If CheckA2.Value Then
txtseat.Text = "A2"
Text6.Text = "Reserve"
End If

28 | P a g e

CheckA2.Enabled = False
End Sub

Private Sub CheckA20_Click()


If CheckA20.Value Then
txtseat.Text = "A20"
Text6.Text = "Reserve"
End If
CheckA20.Enabled = False
End Sub

Private Sub CheckA3_Click()


If CheckA3.Value Then
txtseat.Text = "A3"
Text6.Text = "Reserve"
End If
CheckA3.Enabled = False
End Sub

Private Sub CheckA4_Click()


If CheckA4.Value Then
txtseat.Text = "A4"
Text6.Text = "Reserve"
End If
CheckA4.Enabled = False
End Sub

Private Sub CheckA5_Click()


If CheckA5.Value Then
txtseat.Text = "A5"
Text6.Text = "Reserve"
End If
CheckA5.Enabled = False
End Sub

Private Sub CheckA6_Click()

29 | P a g e

If CheckA6.Value Then
txtseat.Text = "A6"
Text6.Text = "Reserve"
End If
CheckA6.Enabled = False
End Sub

Private Sub CheckA7_Click()


If CheckA7.Value Then
txtseat.Text = "A7"
Text6.Text = "Reserve"
End If
CheckA7.Enabled = False
End Sub

Private Sub CheckA8_Click()


If CheckA8.Value Then
txtseat.Text = "A8"
Text6.Text = "Reserve"
End If
CheckA8.Enabled = False
End Sub

Private Sub CheckA9_Click()


If CheckA9.Value Then
txtseat.Text = "A9"
Text6.Text = "Reserve"
End If
CheckA9.Enabled = False
End Sub

Private Sub CheckB1_Click()


If CheckB1.Value Then
txtseat.Text = "B1"
Text6.Text = "Reserve"
End If

30 | P a g e

CheckB1.Enabled = False
End Sub

Private Sub CheckB10_Click()


If CheckB10.Value Then
txtseat.Text = "B10"
Text6.Text = "Reserve"
End If
CheckB10.Enabled = False
End Sub

Private Sub CheckB11_Click()


If CheckB11.Value Then
txtseat.Text = "B11"
Text6.Text = "Reserve"
End If
CheckB11.Enabled = False
End Sub

Private Sub CheckB12_Click()


If CheckB12.Value Then
txtseat.Text = "B12"
Text6.Text = "Reserve"
End If
CheckB12.Enabled = False
End Sub

Private Sub CheckB13_Click()


If CheckB13.Value Then
txtseat.Text = "B13"
Text6.Text = "Reserve"
End If
CheckB13.Enabled = False
End Sub

Private Sub CheckB14_Click()

31 | P a g e

If CheckB14.Value Then
txtseat.Text = "B14"
Text6.Text = "Reserve"
End If
CheckB14.Enabled = False
End Sub

Private Sub CheckB15_Click()


If CheckB15.Value Then
txtseat.Text = "B15"
Text6.Text = "Reserve"
End If
CheckB15.Enabled = False
End Sub

Private Sub CheckB16_Click()


If CheckB16.Value Then
txtseat.Text = "B16"
Text6.Text = "Reserve"
End If
CheckB16.Enabled = False
End Sub

Private Sub CheckB17_Click()


If CheckB17.Value Then
txtseat.Text = "B17"
Text6.Text = "Reserve"
End If
CheckB17.Enabled = False
End Sub

Private Sub CheckB18_Click()


If CheckB18.Value Then
txtseat.Text = "B18"
Text6.Text = "Reserve"
End If

32 | P a g e

CheckB18.Enabled = False
End Sub

Private Sub CheckB19_Click()


If CheckB19.Value Then
txtseat.Text = "B19"
Text6.Text = "Reserve"
End If
CheckB19.Enabled = False
End Sub

Private Sub CheckB2_Click()


If CheckB2.Value Then
txtseat.Text = "B2"
Text6.Text = "Reserve"
End If
CheckB2.Enabled = False
End Sub

Private Sub CheckB20_Click()


If CheckB20.Value Then
txtseat.Text = "B20"
Text6.Text = "Reserve"
End If
CheckB20.Enabled = False
End Sub

Private Sub CheckB3_Click()


If CheckB3.Value Then
txtseat.Text = "B3"
Text6.Text = "Reserve"
End If
CheckB3.Enabled = False
End Sub

Private Sub CheckB4_Click()

33 | P a g e

If CheckB4.Value Then
txtseat.Text = "B4"
Text6.Text = "Reserve"
End If
CheckB4.Enabled = False
End Sub

Private Sub CheckB5_Click()


If CheckB5.Value Then
txtseat.Text = "B5"
Text6.Text = "Reserve"
End If
CheckB5.Enabled = False
End Sub

Private Sub CheckB6_Click()


If CheckB6.Value Then
txtseat.Text = "B6"
Text6.Text = "Reserve"
End If
CheckB6.Enabled = False
End Sub

Private Sub CheckB7_Click()


If CheckB7.Value Then
txtseat.Text = "B7"
Text6.Text = "Reserve"
End If
CheckB7.Enabled = False
End Sub

Private Sub CheckB8_Click()


If CheckB8.Value Then
txtseat.Text = "B8"
Text6.Text = "Reserve"
End If

34 | P a g e

CheckB8.Enabled = False
End Sub

Private Sub CheckB9_Click()


If CheckB9.Value Then
txtseat.Text = "B9"
Text6.Text = "Reserve"
End If
CheckB9.Enabled = False
End Sub

Private Sub CheckC1_Click()


If CheckC1.Value Then
txtseat.Text = "C1"
Text6.Text = "Reserve"
End If
CheckC1.Enabled = False
End Sub

Private Sub CheckC10_Click()


If CheckC10.Value Then
txtseat.Text = "C10"
Text6.Text = "Reserve"
End If
CheckC10.Enabled = False
End Sub

Private Sub CheckC11_Click()


If CheckC11.Value Then
txtseat.Text = "C11"
Text6.Text = "Reserve"
End If
CheckC11.Enabled = False
End Sub

Private Sub CheckC12_Click()

35 | P a g e

If CheckC12.Value Then
txtseat.Text = "C12"
Text6.Text = "Reserve"
End If
CheckC12.Enabled = False
End Sub

Private Sub CheckC13_Click()


If CheckC13.Value Then
txtseat.Text = "C13"
Text6.Text = "Reserve"
End If
CheckC13.Enabled = False
End Sub

Private Sub CheckC14_Click()


If CheckC14.Value Then
txtseat.Text = "C14"
Text6.Text = "Reserve"
End If
CheckC14.Enabled = False
End Sub

Private Sub CheckC15_Click()


If CheckC15.Value Then
txtseat.Text = "C15"
Text6.Text = "Reserve"
End If
CheckC15.Enabled = False
End Sub

Private Sub CheckC16_Click()


If CheckC16.Value Then
txtseat.Text = "C16"
Text6.Text = "Reserve"
End If

36 | P a g e

CheckC16.Enabled = False
End Sub

Private Sub CheckC17_Click()


If CheckC17.Value Then
txtseat.Text = "C17"
Text6.Text = "Reserve"
End If
CheckC17.Enabled = False
End Sub

Private Sub CheckC18_Click()


If CheckC18.Value Then
txtseat.Text = "C18"
Text6.Text = "Reserve"
End If
CheckC18.Enabled = False
End Sub

Private Sub CheckC19_Click()


If CheckC19.Value Then
txtseat.Text = "C19"
Text6.Text = "Reserve"
End If
CheckC19.Enabled = False
End Sub

Private Sub CheckC2_Click()


If CheckC2.Value Then
txtseat.Text = "C2"
Text6.Text = "Reserve"
End If
CheckC2.Enabled = False
End Sub

Private Sub CheckC20_Click()

37 | P a g e

If CheckC20.Value Then
txtseat.Text = "C20"
Text6.Text = "Reserve"
End If
CheckC20.Enabled = False
End Sub

Private Sub CheckC3_Click()


If CheckC3.Value Then
txtseat.Text = "C3"
Text6.Text = "Reserve"
End If
CheckC3.Enabled = False
End Sub

Private Sub CheckC4_Click()


If CheckC4.Value Then
txtseat.Text = "C4"
Text6.Text = "Reserve"
End If
CheckC4.Enabled = False
End Sub

Private Sub CheckC5_Click()


If CheckC5.Value Then
txtseat.Text = "C5"
Text6.Text = "Reserve"
End If
CheckC5.Enabled = False
End Sub

Private Sub CheckC6_Click()


If CheckC6.Value Then
txtseat.Text = "C6"
Text6.Text = "Reserve"
End If

38 | P a g e

CheckC6.Enabled = False
End Sub

Private Sub CheckC7_Click()


If CheckC7.Value Then
txtseat.Text = "C7"
Text6.Text = "Reserve"
End If
CheckC7.Enabled = False
End Sub

Private Sub CheckC8_Click()


If CheckC8.Value Then
txtseat.Text = "C8"
Text6.Text = "Reserve"
End If
CheckC8.Enabled = False
End Sub

Private Sub CheckC9_Click()


If CheckC9.Value Then
txtseat.Text = "C9"
Text6.Text = "Reserve"
End If
CheckC9.Enabled = False
End Sub

Private Sub CheckD1_Click()


If CheckD1.Value Then
txtseat.Text = "D1"
Text6.Text = "Reserve"
End If
CheckD1.Enabled = False
End Sub

Private Sub CheckD10_Click()

39 | P a g e

If CheckD10.Value Then
txtseat.Text = "D10"
Text6.Text = "Reserve"
End If
CheckD10.Enabled = False
End Sub

Private Sub CheckD11_Click()


If CheckD11.Value Then
txtseat.Text = "D11"
Text6.Text = "Reserve"
End If
CheckD11.Enabled = False
End Sub

Private Sub CheckD12_Click()


If CheckD12.Value Then
txtseat.Text = "D12"
Text6.Text = "Reserve"
End If
CheckD12.Enabled = False
End Sub

Private Sub CheckD13_Click()


If CheckD13.Value Then
txtseat.Text = "D13"
Text6.Text = "Reserve"
End If
CheckD13.Enabled = False
End Sub

Private Sub CheckD14_Click()


If CheckD14.Value Then
txtseat.Text = "D14"
Text6.Text = "Reserve"
End If

40 | P a g e

CheckD14.Enabled = False
End Sub

Private Sub CheckD15_Click()


If CheckD15.Value Then
txtseat.Text = "D15"
Text6.Text = "Reserve"
End If
CheckD15.Enabled = False
End Sub

Private Sub CheckD16_Click()


If CheckD16.Value Then
txtseat.Text = "D16"
Text6.Text = "Reserve"
End If
CheckD16.Enabled = False
End Sub

Private Sub CheckD17_Click()


If CheckD17.Value Then
txtseat.Text = "D17"
Text6.Text = "Reserve"
End If
CheckD17.Enabled = False
End Sub

Private Sub CheckD18_Click()


If CheckD18.Value Then
txtseat.Text = "D18"
Text6.Text = "Reserve"
End If
CheckD18.Enabled = False
End Sub

Private Sub CheckD19_Click()

41 | P a g e

If CheckD19.Value Then
txtseat.Text = "D19"
Text6.Text = "Reserve"
End If
CheckD19.Enabled = False
End Sub

Private Sub CheckD2_Click()


If CheckD2.Value Then
txtseat.Text = "D2"
Text6.Text = "Reserve"
End If
CheckD2.Enabled = False
End Sub

Private Sub CheckD20_Click()


If CheckD20.Value Then
txtseat.Text = "D20"
Text6.Text = "Reserve"
End If
CheckD20.Enabled = False
End Sub

Private Sub CheckD3_Click()


If CheckD3.Value Then
txtseat.Text = "D3"
Text6.Text = "Reserve"
End If
CheckD3.Enabled = False
End Sub

Private Sub CheckD4_Click()


If CheckD4.Value Then
txtseat.Text = "D4"
Text6.Text = "Reserve"
End If

42 | P a g e

CheckD4.Enabled = False
End Sub

Private Sub CheckD5_Click()


If CheckD5.Value Then
txtseat.Text = "D5"
Text6.Text = "Reserve"
End If
CheckD5.Enabled = False
End Sub

Private Sub CheckD6_Click()


If CheckD6.Value Then
txtseat.Text = "D6"
Text6.Text = "Reserve"
End If
CheckD6.Enabled = False
End Sub

Private Sub CheckD7_Click()


If CheckD7.Value Then
txtseat.Text = "D7"
Text6.Text = "Reserve"
End If
CheckD7.Enabled = False
End Sub

Private Sub CheckD8_Click()


If CheckD8.Value Then
txtseat.Text = "D8"
Text6.Text = "Reserve"
End If
CheckD8.Enabled = False
End Sub

Private Sub CheckD9_Click()

43 | P a g e

If CheckD9.Value Then
txtseat.Text = "D9"
Text6.Text = "Reserve"
End If
CheckD9.Enabled = False
End Sub

Private Sub CheckE1_Click()


If CheckE1.Value Then
txtseat.Text = "E1"
Text6.Text = "Reserve"
End If
CheckE1.Enabled = False
End Sub

Private Sub CheckE10_Click()


If CheckE10.Value Then
txtseat.Text = "E10"
Text6.Text = "Reserve"
End If
CheckE10.Enabled = False
End Sub

Private Sub CheckE11_Click()


If CheckE11.Value Then
txtseat.Text = "E11"
Text6.Text = "Reserve"
End If
CheckE11.Enabled = False
End Sub

Private Sub CheckE12_Click()


If CheckE12.Value Then
txtseat.Text = "E12"
Text6.Text = "Reserve"
End If

44 | P a g e

CheckE12.Enabled = False
End Sub

Private Sub CheckE13_Click()


If CheckE13.Value Then
txtseat.Text = "E13"
Text6.Text = "Reserve"
End If
CheckE13.Enabled = False
End Sub

Private Sub CheckE14_Click()


If CheckE14.Value Then
txtseat.Text = "E14"
Text6.Text = "Reserve"
End If
CheckE14.Enabled = False
End Sub

Private Sub CheckE15_Click()


If CheckE15.Value Then
txtseat.Text = "E15"
Text6.Text = "Reserve"
End If
CheckE15.Enabled = False
End Sub

Private Sub CheckE16_Click()


If CheckE16.Value Then
txtseat.Text = "E16"
Text6.Text = "Reserve"
End If
CheckE16.Enabled = False
End Sub

Private Sub CheckE17_Click()

45 | P a g e

If CheckE17.Value Then
txtseat.Text = "E17"
Text6.Text = "Reserve"
End If
CheckE17.Enabled = False
End Sub

Private Sub CheckE18_Click()


If CheckE18.Value Then
txtseat.Text = "E18"
Text6.Text = "Reserve"
End If
CheckE18.Enabled = False
End Sub

Private Sub CheckE19_Click()


If CheckE19.Value Then
txtseat.Text = "E19"
Text6.Text = "Reserve"
End If
CheckE19.Enabled = False
End Sub

Private Sub CheckE2_Click()


If CheckE2.Value Then
txtseat.Text = "E2"
Text6.Text = "Reserve"
End If
CheckE2.Enabled = False
End Sub

Private Sub CheckE20_Click()


If CheckE20.Value Then
txtseat.Text = "E20"
Text6.Text = "Reserve"
End If

46 | P a g e

CheckE20.Enabled = False
End Sub

Private Sub CheckE3_Click()


If CheckE3.Value Then
txtseat.Text = "E3"
Text6.Text = "Reserve"
End If
CheckE3.Enabled = False
End Sub

Private Sub CheckE4_Click()


If CheckE4.Value Then
txtseat.Text = "E4"
Text6.Text = "Reserve"
End If
CheckE4.Enabled = False
End Sub

Private Sub CheckE5_Click()


If CheckE5.Value Then
txtseat.Text = "E5"
Text6.Text = "Reserve"
End If
CheckE5.Enabled = False
End Sub

Private Sub CheckE6_Click()


If CheckE6.Value Then
txtseat.Text = "E6"
Text6.Text = "Reserve"
End If
CheckE6.Enabled = False
End Sub

Private Sub CheckE7_Click()

47 | P a g e

If CheckE7.Value Then
txtseat.Text = "E7"
Text6.Text = "Reserve"
End If
CheckE7.Enabled = False
End Sub

Private Sub CheckE8_Click()


If CheckE8.Value Then
txtseat.Text = "E8"
Text6.Text = "Reserve"
End If
CheckE8.Enabled = False
End Sub

Private Sub CheckE9_Click()


If CheckE9.Value Then
txtseat.Text = "E9"
Text6.Text = "Reserve"
End If
CheckE9.Enabled = False
End Sub

Private Sub CheckF1_Click()


If CheckF1.Value Then
txtseat.Text = "F1"
Text6.Text = "Reserve"
End If
CheckF1.Enabled = False
End Sub

Private Sub CheckF10_Click()


If CheckF10.Value Then
txtseat.Text = "F10"
Text6.Text = "Reserve"
End If

48 | P a g e

CheckF10.Enabled = False
End Sub

Private Sub CheckF11_Click()


If CheckF11.Value Then
txtseat.Text = "F11"
Text6.Text = "Reserve"
End If
CheckF11.Enabled = False
End Sub

Private Sub CheckF12_Click()


If CheckF12.Value Then
txtseat.Text = "F12"
Text6.Text = "Reserve"
End If
CheckF12.Enabled = False
End Sub

Private Sub CheckF13_Click()


If CheckF13.Value Then
txtseat.Text = "F13"
Text6.Text = "Reserve"
End If
CheckF13.Enabled = False
End Sub

Private Sub CheckF14_Click()


If CheckF14.Value Then
txtseat.Text = "F14"
Text6.Text = "Reserve"
End If
CheckF14.Enabled = False
End Sub

Private Sub CheckF15_Click()

49 | P a g e

If CheckF15.Value Then
txtseat.Text = "F15"
Text6.Text = "Reserve"
End If
CheckF15.Enabled = False
End Sub

Private Sub CheckF16_Click()


If CheckF16.Value Then
txtseat.Text = "F16"
Text6.Text = "Reserve"
End If
CheckF16.Enabled = False
End Sub

Private Sub CheckF17_Click()


If CheckF17.Value Then
txtseat.Text = "F17"
Text6.Text = "Reserve"
End If
CheckF17.Enabled = False
End Sub

Private Sub CheckF18_Click()


If CheckF18.Value Then
txtseat.Text = "F18"
Text6.Text = "Reserve"
End If
CheckF18.Enabled = False
End Sub

Private Sub CheckF19_Click()


If CheckF19.Value Then
txtseat.Text = "F19"
Text6.Text = "Reserve"
End If

50 | P a g e

CheckF19.Enabled = False
End Sub

Private Sub CheckF2_Click()


If CheckF2.Value Then
txtseat.Text = "F2"
Text6.Text = "Reserve"
End If
CheckF2.Enabled = False
End Sub

Private Sub CheckF20_Click()


If CheckF20.Value Then
txtseat.Text = "F20"
Text6.Text = "Reserve"
End If
CheckF20.Enabled = False
End Sub

Private Sub CheckF3_Click()


If CheckF3.Value Then
txtseat.Text = "F3"
Text6.Text = "Reserve"
End If
CheckF3.Enabled = False
End Sub

Private Sub CheckF4_Click()


If CheckF4.Value Then
txtseat.Text = "F4"
Text6.Text = "Reserve"
End If
CheckF4.Enabled = False
End Sub

Private Sub CheckF5_Click()

51 | P a g e

If CheckF5.Value Then
txtseat.Text = "F5"
Text6.Text = "Reserve"
End If
CheckF5.Enabled = False
End Sub

Private Sub CheckF6_Click()


If CheckF6.Value Then
txtseat.Text = "F6"
Text6.Text = "Reserve"
End If
CheckF6.Enabled = False
End Sub

Private Sub CheckF7_Click()


If CheckF7.Value Then
txtseat.Text = "F7"
Text6.Text = "Reserve"
End If
CheckF7.Enabled = False
End Sub

Private Sub CheckF8_Click()


If CheckF8.Value Then
txtseat.Text = "F8"
Text6.Text = "Reserve"
End If
CheckF8.Enabled = False
End Sub

Private Sub CheckF9_Click()


If CheckF9.Value Then
txtseat.Text = "F9"
Text6.Text = "Reserve"
End If

52 | P a g e

CheckF9.Enabled = False
End Sub

Private Sub CmdSave2_Click()


Set rx = New ADODB.Recordset
rx.Open "select * from reservation", con, 2, 3
With rx
.AddNew
.Fields("movienam") = txtmovie.Text
.Fields("movieamo") = txtamount.Text
.Fields("movietno") = txtnumber.Text
.Fields("moviepri") = txtpayment.Text
.Fields("moviedat") = txtDate.Text
.Fields("movietim") = DataCombo2.Text
.Update
End With
MsgBox "Data has been save!"
Set rx = Nothing

Frame1.Enabled = False
Frame2.Enabled = True

If DataCombo2.Text = "1:00 pm - 3:00 pm" Then


Frame4.Enabled = True
Frame5.Enabled = False
Frame6.Enabled = False
End If

If DataCombo2.Text = "3:30 pm - 6:00 pm" Then


Frame4.Enabled = False
Frame5.Enabled = True
Frame6.Enabled = False
End If

53 | P a g e

If DataCombo2.Text = "6:30 pm - 9:00 pm" Then


Frame4.Enabled = False
Frame5.Enabled = False
Frame6.Enabled = True
End If

End Sub

Private Sub Command1_Click()


txtpayment.Text = txtamount.Text * Val(txtnumber.Text)
FrTicket.Enabled = False
Frame1.Enabled = True

End Sub

Private Sub Command2_Click()


Set rx = New ADODB.Recordset
rx.Open "select * from seats", con, 2, 3
With rx
.AddNew
.Fields("movienam") = Text2.Text
.Fields("moviedat") = Text3.Text
.Fields("movietim") = Text4.Text
.Fields("seatnam") = Text5.Text
.Fields("seatnum") = txtseat.Text
.Fields("seatrem") = Text6.Text
.Update
End With
MsgBox "Data has been save!"
Set rx = Nothing
Text2.Text = ""
Text3.Text = ""
Text5.Text = ""
Text6.Text = ""

54 | P a g e

txtseat.Text = ""
Text4.Text = ""
txtmovie.Text = ""
FrTicket.Enabled = True
Text1.Text = ""
DataCombo2.Text = ""
txtnumber.Text = ""
txtpayment.Text = ""
txtamount.Text = ""

If Frame4.Enabled = True Then


Do While b = 0
a=a+1
b = 20 - a
Text7.Text = b
Loop

End If

If Frame5.Enabled = True Then


Do While b = 0
a=a+1
b = 20 - a
Text8.Text = b
Loop

End If

If Frame6.Enabled = True Then


Do While b = 0
a=a+1
b = 20 - a
Text9.Text = b
Loop

55 | P a g e

End If
End Sub

Private Sub Command3_Click()


FrTicket.Enabled = True
txtmovie.Text = ""
txtamount.Text = ""
txtpayment.Text = ""
txtnumber.Text = ""
Text2.Text = ""
End Sub

Private Sub Command4_Click()

CheckA1.Enabled = True
txtseat.Text = ""
Text6.Text = ""
CheckA2.Enabled = True
CheckA3.Enabled = True
CheckA4.Enabled = True
CheckA5.Enabled = True
CheckA6.Enabled = True
CheckA7.Enabled = True
CheckA8.Enabled = True
CheckA9.Enabled = True
CheckA10.Enabled = True
CheckA11.Enabled = True
CheckA12.Enabled = True
CheckA13.Enabled = True
CheckA14.Enabled = True
CheckA15.Enabled = True
CheckA16.Enabled = True
CheckA17.Enabled = True
CheckA18.Enabled = True
CheckA19.Enabled = True

56 | P a g e

CheckA20.Enabled = True
CheckB1.Enabled = True
CheckB2.Enabled = True
CheckB3.Enabled = True
CheckB4.Enabled = True
CheckB5.Enabled = True
CheckB6.Enabled = True
CheckB7.Enabled = True
CheckB8.Enabled = True
CheckB9.Enabled = True
CheckB10.Enabled = True
CheckB11.Enabled = True
CheckB12.Enabled = True
CheckB13.Enabled = True
CheckB14.Enabled = True
CheckB15.Enabled = True
CheckB16.Enabled = True
CheckB17.Enabled = True
CheckB18.Enabled = True
CheckB19.Enabled = True
CheckB20.Enabled = True
CheckC1.Enabled = True
CheckC2.Enabled = True
CheckC3.Enabled = True
CheckC4.Enabled = True
CheckC5.Enabled = True
CheckC6.Enabled = True
CheckC7.Enabled = True
CheckC8.Enabled = True
CheckC9.Enabled = True
CheckC10.Enabled = True
CheckC11.Enabled = True
CheckC12.Enabled = True
CheckC13.Enabled = True
CheckC14.Enabled = True
CheckC15.Enabled = True

57 | P a g e

CheckC16.Enabled = True
CheckC17.Enabled = True
CheckC18.Enabled = True
CheckC19.Enabled = True
CheckC20.Enabled = True
CheckD1.Enabled = True
CheckD2.Enabled = True
CheckD3.Enabled = True
CheckD4.Enabled = True
CheckD5.Enabled = True
CheckD6.Enabled = True
CheckD7.Enabled = True
CheckD8.Enabled = True
CheckD9.Enabled = True
CheckD10.Enabled = True
CheckD11.Enabled = True
CheckD12.Enabled = True
CheckD13.Enabled = True
CheckD14.Enabled = True
CheckD15.Enabled = True
CheckD16.Enabled = True
CheckD17.Enabled = True
CheckD18.Enabled = True
CheckD19.Enabled = True
CheckD20.Enabled = True
CheckE1.Enabled = True
CheckE2.Enabled = True
CheckE3.Enabled = True
CheckE4.Enabled = True
CheckE5.Enabled = True
CheckE6.Enabled = True
CheckE7.Enabled = True
CheckE8.Enabled = True
CheckE9.Enabled = True
CheckE10.Enabled = True
CheckE11.Enabled = True

58 | P a g e

CheckE12.Enabled = True
CheckE13.Enabled = True
CheckE14.Enabled = True
CheckE15.Enabled = True
CheckE16.Enabled = True
CheckE17.Enabled = True
CheckE18.Enabled = True
CheckE19.Enabled = True
CheckE20.Enabled = True
CheckF1.Enabled = True
CheckF2.Enabled = True
CheckF3.Enabled = True
CheckF4.Enabled = True
CheckF5.Enabled = True
CheckF6.Enabled = True
CheckF7.Enabled = True
CheckF8.Enabled = True
CheckF9.Enabled = True
CheckF10.Enabled = True
CheckF11.Enabled = True
CheckF12.Enabled = True
CheckF13.Enabled = True
CheckF14.Enabled = True
CheckF15.Enabled = True
CheckF16.Enabled = True
CheckF17.Enabled = True
CheckF18.Enabled = True
CheckF19.Enabled = True
CheckF20.Enabled = True
End Sub

Private Sub Command5_Click()


CheckA1.Value = 0
CheckA2.Value = 0
CheckA3.Value = 0
CheckA4.Value = 0

59 | P a g e

CheckA5.Value = 0
CheckA6.Value = 0
CheckA7.Value = 0
CheckA8.Value = 0
CheckA9.Value = 0
CheckA10.Value = 0
CheckA11.Value = 0
CheckA12.Value = 0
CheckA13.Value = 0
CheckA14.Value = 0
CheckA15.Value = 0
CheckA16.Value = 0
CheckA17.Value = 0
CheckA18.Value = 0
CheckA19.Value = 0
CheckA20.Value = 0
CheckB1.Value = 0
CheckB2.Value = 0
CheckB3.Value = 0
CheckB4.Value = 0
CheckB5.Value = 0
CheckB6.Value = 0
CheckB7.Value = 0
CheckB8.Value = 0
CheckB9.Value = 0
CheckB10.Value = 0
CheckB11.Value = 0
CheckB12.Value = 0
CheckB13.Value = 0
CheckB14.Value = 0
CheckB15.Value = 0
CheckB16.Value = 0
CheckB17.Value = 0
CheckB18.Value = 0
CheckB19.Value = 0
CheckB20.Value = 0

60 | P a g e

CheckC1.Value = 0
CheckC2.Value = 0
CheckC3.Value = 0
CheckC4.Value = 0
CheckC5.Value = 0
CheckC6.Value = 0
CheckC7.Value = 0
CheckC8.Value = 0
CheckC9.Value = 0
CheckC10.Value = 0
CheckC11.Value = 0
CheckC12.Value = 0
CheckC13.Value = 0
CheckC14.Value = 0
CheckC15.Value = 0
CheckC16.Value = 0
CheckC17.Value = 0
CheckC18.Value = 0
CheckC19.Value = 0
CheckC20.Value = 0
CheckD1.Value = 0
CheckD2.Value = 0
CheckD3.Value = 0
CheckD4.Value = 0
CheckD5.Value = 0
CheckD6.Value = 0
CheckD7.Value = 0
CheckD8.Value = 0
CheckD9.Value = 0
CheckD10.Value = 0
CheckD11.Value = 0
CheckD12.Value = 0
CheckD13.Value = 0
CheckD14.Value = 0
CheckD15.Value = 0
CheckD16.Value = 0

61 | P a g e

CheckD17.Value = 0
CheckD18.Value = 0
CheckD19.Value = 0
CheckD20.Value = 0
CheckE1.Value = 0
CheckE2.Value = 0
CheckE3.Value = 0
CheckE4.Value = 0
CheckE5.Value = 0
CheckE6.Value = 0
CheckE7.Value = 0
CheckE8.Value = 0
CheckE9.Value = 0
CheckE10.Value = 0
CheckE11.Value = 0
CheckE12.Value = 0
CheckE13.Value = 0
CheckE14.Value = 0
CheckE15.Value = 0
CheckE16.Value = 0
CheckE17.Value = 0
CheckE18.Value = 0
CheckE19.Value = 0
CheckE20.Value = 0
CheckF1.Value = 0
CheckF2.Value = 0
CheckF3.Value = 0
CheckF4.Value = 0
CheckF5.Value = 0
CheckF6.Value = 0
CheckF7.Value = 0
CheckF8.Value = 0
CheckF9.Value = 0
CheckF10.Value = 0
CheckF11.Value = 0
CheckF12.Value = 0

62 | P a g e

CheckF13.Value = 0
CheckF14.Value = 0
CheckF15.Value = 0
CheckF16.Value = 0
CheckF17.Value = 0
CheckF18.Value = 0
CheckF19.Value = 0
CheckF20.Value = 0

End Sub

Private Sub DataCombo2_Click(Area As Integer)


Text4.Text = DataCombo2.Text

End Sub

Private Sub Form_Activate()


ComboName_list
Frame1.Enabled = False
Frame2.Enabled = False
End Sub

Private Sub Form_Load()


connection
Set Connect = New Class1
End Sub
Sub ComboName_list()
Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie", cn, 2, 3
CboName.Clear
Do While Not .EOF
CboName.AddItem !movienam
.MoveNext

63 | P a g e

Loop

End With
End Sub
Private Sub CboName_Click()
Set rs = New ADODB.Recordset
With rs
.Open "Select * from movie where movienam ='" & CboName.Text & "'", cn, 2, 3
txtmovie.Text = !movienam
txtamount.Text = !movieamo
Label4.Caption = !moviepic
Text1.Text = !movienam
Text2.Text = !movienam
txtno.Text = !movieno
Image1.Picture = LoadPicture(Label4.Caption)

End With
End Sub
Private Sub CboName_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then

Set rs = New ADODB.Recordset


With rs
.Open "Select * from movie where movienam ='" & CboName.Text & "'", cn, 2, 3
On Error GoTo notfind
txtmovie.Text = !movienam
txtamount.Text = !movieamo
Label4.Caption = !moviepic
Text4.Text = !movienam
txtno.Text = !movieno
Image1.Picture = LoadPicture(Label4.Caption)

End With
End If
Exit Sub

64 | P a g e

notfind:
MsgBox "Record not fount", vbInformation, "Message"
CboName.SetFocus
SendKeys "+{home}+{end}+"
End Sub

End Sub

Dim a, b As Integer

Private Sub Frame2_DragDrop(Source As Control, X As Single, Y As Single)


a=0
b = 20 - a
End Sub

Private Sub mnuHome_Click()


Ticket.Show
Me.Hide
End Sub

Private Sub mnuInventory_Click()


Inventory.Show
Me.Hide
End Sub

Private Sub mnuLogout_Click()


Welcome.Show
Me.Hide
End Sub

Private Sub mnuMovie_Click()


Movie.Show
Me.Hide

End Sub

65 | P a g e

Private Sub mnuReservation_Click()


Reservation.Show
End Sub

Private Sub Text4_Change()

Text4.Text = DataCombo2.Text
If DataCombo2.Text = "1:00 pm - 3:00 pm" Then
Frame4.Enabled = True
Frame5.Enabled = False
Frame6.Enabled = False
End If
If DataCombo2.Text = "3:30 pm - 6:00 pm" Then
Frame4.Enabled = False
Frame5.Enabled = True
Frame6.Enabled = False
End If
If DataCombo2.Text = "6:30 pm - 9:00 pm" Then
Frame4.Enabled = False
Frame5.Enabled = False
Frame6.Enabled = True
End If

End Sub

Private Sub Timer1_Timer()


txtDate.Text = Format(Date, "mmmm-dd-yyyy")
End Sub

Private Sub Timer2_Timer()


Text3.Text = Format(Date, "mmmm-dd-yyyy")
End Sub

Private Sub txtno_Change()

66 | P a g e

If txtno.Text = 2 Then
Me.Hide
seats.Show
End If
End Sub

67 | P a g e

You might also like