0% found this document useful (0 votes)
25 views

Implementation Mdi Form

This document outlines the code for an MDI form and four forms (Login, Details, Register, Review) that are used to manage a conference registration and review system. The MDI form establishes the database connection and handles loading the other forms. Form1 handles user login validation. Form2 displays conference details. Form3 allows registration submission and paper uploading. Form4 allows reviewing a submission and updating its status.

Uploaded by

GANAPATHY.S
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Implementation Mdi Form

This document outlines the code for an MDI form and four forms (Login, Details, Register, Review) that are used to manage a conference registration and review system. The MDI form establishes the database connection and handles loading the other forms. Form1 handles user login validation. Form2 displays conference details. Form3 allows registration submission and paper uploading. Form4 allows reviewing a submission and updating its status.

Uploaded by

GANAPATHY.S
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

IMPLEMENTATION

MDI FORM

Private Sub MDIForm_Load()


db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\CaseTools\conf\conference.mdb;Persist Security Info=False"
db.Open
End Sub
Private Sub mLogin_Click()
Form1.Show
End Sub
Private Sub mRegister_Click()
Form3.Show
End Sub
Private Sub mReview_Click()
Form4.Show
End Sub

FORM1 (LOGIN)

Private Sub cmdCancel_Click()


Unload Me
End Sub
Private Sub cmdLogin_Click()
query = "select * from Login where USERN = '" & txtUser.Text & "' and PASSWRD = '" &
txtPass.Text & "'"
Set rs = db.Execute(query)
If Not rs.EOF Then
User = rs(0)
rs.Close
Form2.Show
Else
MsgBox ("Invalid Username or Password")
End If
End Sub

FORM2 (DETAILS)

Private Sub cmdClose_Click()


Unload Me
End Sub
Private Sub cmdOk_Click()
query = "select * from Details where CYEAR='" & cmbYear.Text & "' and CONFERENCE='" &
cmbConf.Text & "'"
Set rs = db.Execute(query)
txtPlace = rs("PLACE")
txtDate = rs("CDate")
txtTime = rs("CTime")
End Sub

FORM3 (REGISTER)

Private Sub cmdCancel_Click()


Unload Me
End Sub
Private Sub cmdPaper_Click()
CommonDialog1.ShowOpen
txtPaper.Text = CommonDialog1.FileName
End Sub
Private Sub cmdRegister_Click()
query = "insert into Register(ANAME,DEPT,COLLEGE,CONFERENCE,STATUS)values('" &
txtName.Text & "','" & txtDept.Text & "','" & txtCollege.Text & "','" & txtConf.Text &
"','REGISTERED')"
Set rs = db.Execute(query)
MsgBox ("Registration Successful")
End Sub

FORM4 (REVIEW)

Private Sub cmdCancel_Click()


Unload Me
End Sub
Private Sub cmdOk_Click()
query = "select * from Register where ID=" & txtNo.Text & ""
Set rs = db.Execute(query)
txtName = rs("ANAME")
txtConf = rs("CONFERENCE")
End Sub
Private Sub cmdReview_Click()
If Check1.Value = 1 Then
If Check2.Value = 1 Then
If Check3.Value = 1 Then
db.Execute ("update Register set STATUS='REVIEWED' where ID= " & txtNo.Text & "")
MsgBox ("Paper reviewed")
End If
End If
End If
End Sub

You might also like