You are on page 1of 7

STUDENT ACADEMIC DETAILS: STUDENT PERSONAL DETAILS:

ACADEMIC MODULES: ADD NEW:

LOGIN FORM: ACADEMIC: Private Sub Command1_Click() With Form3 .Adodc1.RecordSource = "Select * From Register Where RegNo=" & Trim(Form1.Text1.Text) .Adodc1.Refresh If .Adodc1.Recordset.EOF = True Then MsgBox "Not Found", vbInformation Else Form3.Show End If End With End Sub PERSONAL: Private Sub Command2_Click() With Form2 .Adodc1.RecordSource = "Select * From Register Where RegNo=" & Trim(Form1.Text1.Text) .Adodc1.Refresh If .Adodc1.Recordset.EOF = True Then MsgBox "Not Found", vbInformation Else Form2.Show End If End With End Sub Private Sub Form_Unload(Cancel As Integer) Unload Me Unload Form2 Unload Form3 End Sub PERSONAL FORM: BACK: Private Sub Command1_Click() Form2.Hide Form1.Show End Sub UPDATE: Private Sub Command2_Click() Adodc1.Recordset.Update MsgBox "RECORD UPDATED" End Sub Private Sub Form_Load() Adodc1.Visible = False End Sub ACADEMIC FORM: BACK: Private Sub Command1_Click() Form3.Hide Form1.Show

End Sub ADD NEW: Private Sub Command2_Click() Adodc1.Recordset.AddNew Text1.SetFocus End Sub DELETE: Private Sub Command3_Click() Adodc1.Recordset.Delete

MsgBox "RECORD DELETED" End Sub

UPDATE: Private Sub Command4_Click() Adodc1.Recordset.Update MsgBox "RECORD UPDATED" End Sub Private Sub Form_Load()

Adodc1.Visible = False End Sub

You might also like