Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Student Mark Analysis System

Student Mark Analysis System

Ratings: (0)|Views: 146 |Likes:
Published by plakshunnaidu

More info:

Published by: plakshunnaidu on Jun 29, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

06/29/2012

pdf

text

original

 
 
Student mark analysissystem
Login FormDim rs As ADODB.RecordsetDim cn As ADODB.ConnectionPrivate Sub Command1_Click ()Dim f As Integerf = 0If Text1 = "" ThenMsgBox "Please Enter your Password."Exit SubEnd If rs.MoveFirstIf Combo1.Text = rs(0) And Text1 = rs(1) Thenf = 1GoTo lEnd If rs.MoveNextIf Combo1.Text = rs(0) And Text1 = rs(1) Thenf = 2GoTo lEnd If l:If f = 1 Thenoperations.ShowUnload MeElseIf f = 2 Thenoperations.Command4.Enabled = Falseoperations.Command5.Enabled = Falseoperations.Command14.Enabled = Falseoperations.Show
 
 
Unload MeEnd If End SubPrivate Sub Form_Load()Set cn = New ConnectionSet rs = New Recordsetcn.Provider = "microsoft.jet.OLEDB.4.0"cn.Open ("E:\ebi\student.mdb")rs.Open "select * from verification", cn, adOpenDynamic, adLockOptimisticCombo1.Text = Combo1.List(0)End Sub
‘Operations Form
 Dim rs As ADODB.RecordsetDim cn As ADODB.ConnectionDim i As Integer, f1 As Integer, f As Integer, total As Double, average As DoublePrivate Sub Command11_Click()For i = 0 To 9Text(i).ForeColor = vbBlack NextIf Text19 = "" ThenMsgBox "Please Enter a Record Number to view"Text19.SetFocusExit SubEnd If For i = 0 To 7Text(i).Locked = FalseNext if1 = 0rs.MoveFirstWhile Not rs.EOFIf Val(Text19) = rs(0) ThenFor i = 0 To 9If Val(rs(i)) < 50 Or rs(i) = "A" Or rs(i) = "a" Or rs(i) = "absent" Or rs(i) = "Absent" ThenText(i).ForeColor = vbRedText(i) = rs(i)ElseText(i).ForeColor = vbBlack 
 
 
Text(i) = rs(i)End If Next iGoTo lElsers.MoveNextEnd If Wendl:If Text(9) = "FAIL" ThenText(9).ForeColor = vbRedElseText(9).ForeColor = vbBlack End If Text19 = ""End SubPrivate Sub Command14_Click()If Text20 = "" ThenMsgBox "Please Enter a Record Number to Delete"Exit SubEnd If If rs.BOF ThenMsgBox "DataBase is Empty.Please Enter Records to continue"Exit SubEnd If rs.MoveFirstWhile Not rs.EOFIf Val(Text20) = rs(0) ThenIf MsgBox("Are you Sure to delete this record?", vbYesNo) = vbYes Thenrs.DeleteMsgBox "Record Succesfully Deleted."f = 1GoTo lElseText20 = ""Exit SubEnd If Elsers.MoveNext

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->