You are on page 1of 21

Good Shepherd Academy

Poblacion II, Victoria Oriental Mindoro

“Good Shepherd Academy Online Enrollment System”

A system presented to :

Mr. Arnold Janssen Perez

ICT Adviser

In Partial Fulfillments of Requirements in

ICT IV

Group VII

February 26, 2014


“GOOD SHEPHERD

ACADEMY ONLINE

ENROLLMENT SYSTEM”

GROUP VII
Form 1 (form1.frm)

Option Explicit

Public LoginSucceeded As Boolean

Private Sub Command1_Click()


Adodc1.RecordSource = "select * from signup where username like '" & Text1.Text & "'"
Adodc1.Refresh
Adodc2.RecordSource = "select * from signup where password like '" & Text2.Text & "'"
Adodc2.Refresh
If Adodc1.Recordset.EOF Then
MsgBox "invalid username!", vbExclamation
Text1.Text = ""
Else
If Adodc2.Recordset.EOF Then
MsgBox " invalid password!", vbExclamation
Text2.Text = ""
Else
MsgBox "Login Successful!", vbInformation
Unload Me
Form2.Show
End If

End If

End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Update
MsgBox "You have succesfully signed up. Please Log in to continue."
End Sub

Private Sub Command3_Click()


End
End Sub

Private Sub Command4_Click()


Text3.Visible = True
Text4.Visible = True
Text5.Visible = True
Text6.Visible = True
Label9(0).Visible = True

Label11.Visible = True
Label12.Visible = True

Label13.Visible = True

Adodc1.Recordset.AddNew
Command4.Visible = False
End Sub

Private Sub Command5_Click()


Unload Me
Form5.Show
End Sub
Form2 (form2.frm)
Private Sub Check1_Click()

If Check1.Value = 1 Then
Form3.Adodc1.Recordset.AddNew
Unload Me
Form3.Show
Form3.Check3.Value = 0
Form3.Check4.Value = 0
Form3.Check10.Value = 0
Form3.Check11.Value = 0
End If
End Sub

Private Sub Check2_Click()


If Check2.Value = 1 Then
Form3.Adodc1.Recordset.AddNew
Unload Me
Form3.Show
Form3.Check3.Value = 0
Form3.Check4.Value = 0
Form3.Check10.Value = 0
Form3.Check11.Value = 0
End If
End Sub

Private Sub Command1_Click()


Unload Me
Form4.Show

End Sub

Private Sub Command2_Click()


Unload Me
Form1.Show
End Sub
Form3 (form3.frm)

Private Sub Check10_Click()


If Check10.Value = 1 Then
Check11.Value = 0
End If

End Sub

Private Sub Check11_Click()


If Check11.Value = 1 Then
Check10.Value = 0
End If
End Sub

Private Sub Check3_Click()


If Check3.Value = 1 Then
Check4.Value = 0
End If
End Sub

Private Sub Check4_Click()


If Check4.Value = 1 Then
Check3.Value = 0
End If
End Sub

Private Sub Command1_Click()


Form2.Check1.Value = 0
Form2.Check2.Value = 0
Adodc1.Recordset.Update
MsgBox "Record Saved!", vbInformation

Unload Me
Form6.Show
End Sub

Private Sub Command2_Click()


Text22.Text = Combo1.Text & ", " & Combo2.Text & " " & Combo3.Text

Text22.Visible = True
Command2.Visible = False
End Sub

Private Sub Command3_Click()


Unload Me
Form2.Show
End Sub

Private Sub Form_Load()


Combo1.AddItem "January"
Combo1.AddItem "February"
Combo1.AddItem "March"
Combo1.AddItem "April"
Combo1.AddItem "May"
Combo1.AddItem "June"
Combo1.AddItem "July"
Combo1.AddItem "August"
Combo1.AddItem "September"
Combo1.AddItem "October"
Combo1.AddItem "November"
Combo1.AddItem "December"

Combo2.AddItem "1"
Combo2.AddItem "2"
Combo2.AddItem "3"
Combo2.AddItem "4"
Combo2.AddItem "5"
Combo2.AddItem "6"
Combo2.AddItem "7"
Combo2.AddItem "8"
Combo2.AddItem "9"
Combo2.AddItem "10"
Combo2.AddItem "11"
Combo2.AddItem "12"
Combo2.AddItem "13"
Combo2.AddItem "14"
Combo2.AddItem "15"
Combo2.AddItem "16"
Combo2.AddItem "17"
Combo2.AddItem "18"
Combo2.AddItem "19"
Combo2.AddItem "20"
Combo2.AddItem "21"
Combo2.AddItem "22"
Combo2.AddItem "23"
Combo2.AddItem "24"
Combo2.AddItem "25"
Combo2.AddItem "26"
Combo2.AddItem "27"
Combo2.AddItem "28"
Combo2.AddItem "29"
Combo2.AddItem "30"
Combo2.AddItem "31"

Combo3.AddItem "1990"
Combo3.AddItem "1991"
Combo3.AddItem "1992"
Combo3.AddItem "1993"
Combo3.AddItem "1994"
Combo3.AddItem "1995"
Combo3.AddItem "1996"
Combo3.AddItem "1997"
Combo3.AddItem "1998"
Combo3.AddItem "1999"
Combo3.AddItem "2000"
Combo3.AddItem "2001"
Combo3.AddItem "2002"
Combo3.AddItem "2003"
Combo3.AddItem "2004"
Combo3.AddItem "2005"
Combo3.AddItem "2006"
Combo3.AddItem "2007"
Combo3.AddItem "2008"
Combo3.AddItem "2009"
Combo3.AddItem "2010"
Combo3.AddItem "2011"
Combo3.AddItem "2012"
Combo3.AddItem "2013"
Combo3.AddItem "2014"

Combo4.AddItem "MALE"
Combo4.AddItem "FEMALE"

Combo5.AddItem "7"
Combo5.AddItem "8"
Combo5.AddItem "9"
Combo5.AddItem "10"
Combo5.AddItem "11"
Combo5.AddItem "12"
End Sub
Form 4 (form4.frm)
Private Sub Command1_Click()

End Sub

Private Sub Command2_Click()


Form2.Show

Private Sub Command3_Click()


End Sub
End
End Sub

Private Sub ad_Click()


PrintForm
End Sub

Private Sub DataGrid1_Click()

End Sub

Private Sub eee_Click()


Form2.Show
End Sub

Private Sub qwe_Click()


End
End Sub
Form5 (form5.frm)

Private Sub AAA_Click()


PrintForm
End Sub

Private Sub qwe_Click()


Unload Me
Form1.Show
End Sub
Form 6 (form6.frm)

Private Sub Check1_Click()


If Check1.Value = 1 Then
Unload Me
Form7.Show

End If

End Sub

Private Sub Check2_Click()


If Check2.Value = 1 Then
Unload Me
Form8.Show
End If

End Sub
Form 7 (form7.frm)

Private Sub Command1_Click()


Form6.Check1.Value = 0
Form6.Check2.Value = 0
Unload Me
Form2.Show
End Sub
Form 8 (form8.frm)

Private Sub Command1_Click()


Form6.Check1.Value = 0
Form6.Check2.Value = 0
Unload Me
Form2.Show
End Sub

You might also like