Report 1

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 496

“OFFICE AUTOMATION SYSTEM”

OBJECTIVE

This software is designed in view to computerize the data of office automation


system and banking system. It was required to keep the computerized data, as it
was difficult to do manually and is also fast as it takes less time. Purpose to
computerize its data to overcome from haphazard of manual system.

This software is developed with an aim to give accurate and immediate


information whenever required in very shot span of time.

This software mainly provides all information about enquiry system, admission,
re-registration, course details employee details banking system, subject details,
follow-ups to administrator. It handles transaction of total information of office
required by administrator Owner can view

Financial position of institute easily with this software.

1. Current number of enquiry.


2. Handles information about students

The prime objectives of this software:-

1. Maintain follow-ups.
2. Storing information of students required during admission.
3. Billing system.
4. Maintain financial issues
5. Stores information about cash deposit, cheque deposit demand draft
preparation
6. Employee information.
7. Maintain information of re-registration.
8. Maintain Payment from student.
9. Maintain information about courses.
10. Maintain information about subjects.
11. Credit information for student.
12. Maintain other information such as bank, company etc.
13. To provide appropriate report to admistrator regarding above all.

PROBLEM STATEMENT

Requirements

The basic requirement is remove the lengthiness in the management and


remove the unwanted mistake in the entry, apart from this reduce the
manpower and time consumption. The system should make the task of the
entire user quite easy. It should give the required output without much
clerical efforts.

Proposed System

Based on the analysis of problem areas the proposed system shall be


computerized so as to have effective Educational System. This will not only
alleviate the current problems but also provide information networks which
will strengthen the manner in which the organization address its primary
core are i.e. OAS. Proposed system is proposed to feed all the required data
in computer and generate the quick, accurate, timely and efficient output
from the system. Client server technology shall be implemented to
implemented to have good working, robust software for the system. The
huge capabilities of the existing hardware and graphical user interface
environment shall be put for the optimum use so as to have user friendly
software.
Objective Proposed System

 All voluminous data should be fed in to the relational data base hat shall
make it easy to manage.
 Central management of data should remove redundancy of data in the
system.
 At any instance of time , current status of any entity could be derived.
 It should be easy to query the data base and get necessary information
from it at any instance of time.

Proposed System Solution

Proposed system provides with following solutions:

 It provides “better and efficient” service to members.


 Reduced the workload of faculty and staff.
 Faster retrieval of information.
 provides facility for proper monitoring reduce paper work and provides
data security
 All details will be available on click.
REQUIREMENT ANALYSIS

Hardware:

 Pentium IV Processor
 750 MHz
 80 GB HDD
 1 GB RAM

Software:

Front End : VISUAL BASIC 6.0


Back End : Ms Access 2003
Code Behind : Visual Basic.

Operating System:
Development PC : Windows XP.
Framework SDK

SYSTEM REQUIREMENT SPECIFICATION


The requirement analysis phase is the first major step towards the solution
of a software problem.

During this phase, the user’s requirements concerning the proposed


application are carefully identified and documented. It is a task, which
allows the software developer to refine the software allocation and build
models of the data, functional and behavioral domains that will be treated
by software. System requirements may be either Functional or Non-
Functional.

1. Functional Requirements

The system is to support the following functions:

Function 1: Personal OAS system

The personal OAS system will be used only by the administrative members
thus will run independent of the main OAS system. This OAS system will be
used only for work-related purposes. The following functions should be
available in the communication system with regards to administration:
composing, reading old and new records, forwarding, deleting, modifying
the read / unread status of the records, notification
of new / unread records, deleting, and the ability to navigate through
messages received.

Function 2: View and enter new reports

For example, candidate’s number must be unique and when entering


reports modules both values must be valid references. Users input must be
validated and if not in the range specified, the users must be informed of the
correct range. Incorrect data must be prevented in being input, where
possible. The serial field should be locked, as it should be calculated
automatically.

Function 3: Security
The operating system in the department, OAS version 1.0, will be used to
enforce security. So that only the administrative members and the manager
will have access to the system. However another security layer should also
be incorporated, to make the system more secure.

Function 4: Changing passwords and setting userid

The facility of changing a new password and setting or adding a user id


should be available from a menu.

Function 5: Candidate’s details

Users need to view and also add new candidate to the candidate database. It
would be very helpful if a user could enter either a candidate’s name or
number in order to retrieve the candidates’ details and to perform other
functions such as deleting data and printing out student information. It was
discussed that the users would not prefer to get help from the system in
entering the student names to search for, as this function has been
previously been available in the old database and was found to be very
annoying rather than helpful after a while.

Function 7: Employee details

It would be of much use if users could search for information on employees,


By typing in the first name of an employee. Also there should be a facility
where users’ can navigate and view all

2.2 Non-functional Requirements


Mainly in the creation of work-related Information Systems (IS) there has
always been an emphasis on automating work-related tasks in order to
enhance work productivity. When manual tasks are automated work
generally becomes less time consuming, time is money, thus more money is
saved, data is easier to manipulate and is more secured. Fig shows the Data
Flow Diagram (DFD) of the MIS.
SYSTEM ANALYSIS

The system analysis has been conducted with help of Mr. SUMAN KUMARI (Guide).

 Reason For Analysis:

The current manual information system is not meeting the needs of those

responsible for the modeling of OAS-Office Automation System.

 Description:

As we know, System analysis is the first step, which is concerned with devising a

precise, under stable and correct model of real world. Before building anything we

must analyze about it to understand requirement.

As we mentioned introductory part, this Project assignment is the part of decision

support system. It is very difficult for we type of untrained People to understand

system easily because we have no knowledge of this application domain. But hard

work of 1 to 2 months intimate imagination to understand and feel the ideas

about this application domain. In this concerned we are very grateful to my

project guide.
In the initial stage of analysis, I formally attained the lecture of my project guide.

During this phase I have concentrated on

(i) Technical terms of this application domain

(ii) How to classify different parts of the project? i.e. Prepare logical

break-up about, what we understand?

(iii) What we have to do?

(iv) How map to these ideas to developing language Visual basic etc.

I have very frankly to say, during these 3 to 4 months I have only what, how

…How? And there are so many of how?

To understand the requirements i.e. what is needed. We have broken the

whole project into small parts for ease of analysis. OAS-Office Automation

system is the key issue for this type of project.

We have sincerely analyzed project site physical situations, social-economy

and finally the impact of exhaust on the environment.

A) Identification of need
During the interviews and form the research work done by me, we
identified the following specific needs: --

1. Management needs uniform, consistent, reliable and fast decision


making processes, so that it can attract the various similar software.
2. Project Manager needs proper standardized solution for the
preparation of feasibility report to attract consistent, higher No. Of
investment opportunity.
3. Management wants to avoid the duplications and improve the efficacy,
correctness and timeliness of the feasibility analysis so that the
appropriate decision can be taken under the time constraint.
4. An efficient system is needed to generate timely and accurate report
to various actors.
5. A system is needed to enhance the co-ordination between the various
actors like System Analyst, Survey team, Project Manager,
Entrepreneur involved in modeling process.
6. Project specific feasibility decision, management and control systems
needed.
7. Management wants information technology based solutions.

B) Preliminary Investigation
Review of existing manual system, on site observations and interview
are conducted for the modeling of office system in the light of user’s
need and problem identification yet. Following facts about the nature of
the project request are observed.

(a) Preliminary area of applications:


The preliminary area of application for this project identified during the
investigation phase is Database handling, accounting and Decision-
making. Since the data comes from various source and need to store in
the system hence the database management system is needed. On the
basis of various data that comes from survey report, per unit cost of
electricity is calculated. Hence Accounting Process is also needed. The
decision-making is the ultimate goal of management; hence this project
if developed must assist management for taking appropriate decision
regarding modeling process of Office Management system.

(b) Problem definition:


The existing modeling process for Office Management system have
number of problems like:

 Lack of Reliability
 Lack Of Proper Standardization
 Timeliness
 Poor Internal Control Of Information
 Lack Of Efficiency
 Problem Of Accuracy
 Problem Of Economy
 Security Problem

(c) Details Of The Problem:


The details of the problems are:

1. Lack of Reliability:
The system varies in quality from one Project to another. Whenever a new
project is taken, the whole process is done again through manual process,
which results in several of the outcome that desired.

2. Lack of proper Standardization:


Since there is no proper standard in the preparation of feasibility reports for
such kinds of enterprise, it is difficult to project manager to prepare
feasibility reports.

3. Timelines:
The report generation is ultimate goal of the system. Management needs to
generate several reports timely, so that it can attract investor. The existing
manual system is unable to generate various reports under time constraint.
The retrieval of information when and where it is needed is not available.

4. Poor internal control of information:


The manual system lacking internal control of information between different
modules. What if analysis is needed before preparation of final report
regarding project feasibility? Since there is a lack of internal control of
information of various modules, it is often difficult to achieve this task. The
problem area is also affected due to poor control of information flow.

5. Lack of efficiency:
The system needs to store the same piece of data various places. This means
that the work is to be duplicated and hence the system becomes inefficient.

6. The problem of accuracy:


The modeling process from the embryonic data gathering steps to the
processing and decision making steps needs numbers arithmetic
calculations. This process is complex and fair amount of errors may occur.
Because of inaccuracy, the result that may be generated by the system
becomes unreliable and often invalid. These invalid results are often most
troublesome for the system manager.

7. The problem of economy:


The system also suffers from problem of economy because the
existing methods of transmitting, processing and storing
information are very costly. The entire process demands a great
deal of paperwork.

8. Security problem:
The entire process needs paperwork. Paper is not a reliable
media for the storing of information. Hence the system also lacks
proper security.

(d) Significance of problem:


Lack of proper standardization, timeliness & poor internal control of
information is the major problem. Due to absence of any such
information system, consistent and higher No. of investment opportunity
is always being a milestone for a project manager.

Efficiency, accuracy & reliability are another problem that most of time
lacking in the existing manual system. The invalid results that may occur
due to the arithmetic errors become troublesome for the project
manager. Paper is unreliable, insecure and costly media for the storage of
information. Since the entire process starting from the data-gathering
step to the decision step involved great deal of paperwork, the selection
of storage media as a paper becomes unreliable, insecure and costly.
DATA FLOW DIAGRAM

A data-flow diagram (DFD) is a graphical representation of the "flow" of


data through an information system. DFDs can also be used for the
visualization of data processing (structured design).

On a DFD, data items flow from an external data source or an internal data
store to an internal data store or an external data sink, via an internal
process.

A DFD provides no information about the timing of processes, or about


whether processes will operate in sequence or in parallel. It is therefore
quite different from a flowchart, which shows the flow of control through an
algorithm, allowing a reader to determine what operations will be
performed, in what order, and under what circumstances, but not what
kinds of data will be input to and output from the system, nor where the
data will come from and go to, nor where the data will be stored (all of
which are shown on a DFD).

As all system development are divided into different modules and they will
interact with information. The module structure is designed consideration
of the easy to maintain the logic for modification and maintenance. The
system has mainly four parts: -

1. Interaction of agency with candidate’s for enquiry.

2. Interaction of management.
3. Inventory management.

4. Contact students, faculties and member of management.

CONTEXT ANALYSIS DIAGRAM

1st ’Level DFD


Admin Admin
Login Report
Process

o.
e n t Inf nfo
Stud e Info.
i
f ee
Fe ud
Student St
Sms
Admin Campus
Process Process
i nfo Sms
f e e
t ud Personal
S
info Comp Detail Student Summary
tbl_Admission_Fee Tblstud_master Student info Report

Fee Campus
Admission Report Report
Report

Fee table
Student

Admin
DATA DICTONIRY
Course Master

Field caption : Course Code

Field name : CmbcourseCode

Datatype : text

Length : 25

Description : stores the code of the course

Business Rule : not null value

Field caption : Course Desc

Field name : txtCoursedesc

Datatype : text

Length : 50

Description : stores the description of the course

Business Rule : not null value


Subject

Field caption : Course Code

Field name : CmbCode

Datatype : text

Length : 25

Description : stores the code of the course

Business Rule : not null value

Field caption : Semester

Field name : cmbSem

Datatype : text

Length : 25

Description : stores the name of semester

Business Rule : not null value

Field caption : Subject Code

Field name : txtSubcode

Datatype : text

Length : 25

Description : stores the description of the subject

Business Rule : not null value


Field caption : Subject Description

Field name : txtSubDesc

Datatype : text

Length : 25

Description : stores the description of the subject

Business Rule : not null value

Field caption : Subject Table

Field name : txtSubtnm

Datatype : text

Length : 25

Description : stores the description of the subject

Business Rule : not null value

Field caption : Subject Marks

Field name : txtSubmr

Datatype : text

Length : 25

Description : stores the Marks of the subject

Business Rule : not null value


Create User

Field caption : User ID

Field name : txtUserid

Datatype : text

Length : 25

Description : stores the ID of user

Business Rule : unique value

Field caption : Password

Field name : txtPassword

Datatype : text

Length : 20

Description : stores the password

Business Rule : not null value

Student

Field caption : Course Code

Field name : CmbCode

Datatype : text

Length : 25

Description : stores the code of the course

Business Rule : not null value

Field caption : Semester

Field name : cmbSem

Datatype : text
Length : 25

Description : stores the name of semester

Business Rule : not null value

Field caption : Student Name

Field name : txtnm

Datatype : text

Length : 25

Description : stores the description of the Student

Business Rule : not null value

Field caption : Roll

Field name : txtrl

Datatype : text

Length : 25

Description : stores the description of the Roll

Business Rule : not null value

Field caption : Father’s Name

Field name : txtnm

Datatype : text

Length : 25

Description : stores the description of the Father’s Name

Business Rule : not null value


Campus Detail

Field caption : Roll

Field name : txtrl

Datatype : text

Length : 25

Description : stores the description of the Roll

Field caption : Father’s Name

Field name : txtnm

Datatype : text

Length : 25

Description : stores the description of the Father’s Name


LIST OF TABLES

Course Master

Subject Master
tbl_Stud_Master_IDEntry
tbl_stud_master_admission
tbl_Admission_Fee
tbl_place_company
tbl_interested_student
VALIDATION CHECK
We have incorporated following checks for validation of user input-

1. All primary key fields must not be NULL.

2. All character type fields never accept blank space.

3. Numeric fields must not accept nonnumeric value.

4. Value of fields must not overflow their size.

5. Numeric value must be occurs within their range.

6. In cost benefit report functional cell must not allow to change their

value by user.

7. Cursor movement must follow a specific sequence from top to

bottom in all entry form.


SOURCE CODE & SCREEN OUTPUT

Login form

Source Code

Dim mln As Integer

Dim con As New ADODB.Connection

Dim rsenq As New ADODB.Recordset

Public uid, pwd

Private Sub cmdCancel_Click()


Unload Me

End Sub

Private Sub cmdCancel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

cmdCancel.BackColor = &HFFFFC0

End Sub

Private Sub cmdLogin_Click()

'If txtId.Text = "genius" And txtPWD = "suineg" Then

'frmadmin.Show

'Me.Hide

'End If

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

Dim str

Dim uid1, upwd

uid1 = Crypt(txtId.Text)

upwd = Crypt(txtPWD.Text)

str = "SELECT count(*) FROM TBL_LOGIN WHERE USR_ID='" & uid1 & "' AND USR_PASSWORD='" &
upwd & "'"

'MsgBox (str)

If rsenq.State = adStateOpen Then

rsenq.Close

End If

rsenq.Open str, con, adOpenDynamic, adLockOptimistic

If txtId.Text = "" Or txtPWD.Text = "" Then

MsgBox ("Please provide user id and password to login")

txtId.SetFocus

txtId.Text = ""
txtPWD.Text = ""

ElseIf Val(rsenq(0).VALUE) <= 0 Then

MsgBox ("You are not authorised to log into the system")

txtId.SetFocus

txtId.Text = ""

txtPWD.Text = ""

Else

uid = txtId.Text

pwd = txtPWD.Text

frmadmin.Show

Me.Hide

End If

End Sub

Private Sub cmdLogin_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

cmdLogin.BackColor = &HFFFFC0

End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

cmdLogin.BackColor = &H8000000F

cmdCancel.BackColor = &H8000000F

End Sub

Private Sub Timer1_Timer()

'Label1.Left = Label1.Left - 50

'If Label1.Left <= frmlogin.Left - 5265 Then

'Label1.Left = frmlogin.Left + 5265


'End If

frmname = " Genius Institute of Information Technology"

If mln > 50 Then mln = 2 Else mln = mln + 1

frmlogin.Caption = Left(frmname, mln)

Label1.Caption = Left(frmname, mln)

End Sub

Admission form

Source Code
Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim rs1 As New ADODB.Recordset

Dim rscrs As New ADODB.Recordset

Dim rsenq1 As New ADODB.Recordset

Dim rssession As New ADODB.Recordset


Dim rs2 As New ADODB.Recordset

Dim rsid As New ADODB.Recordset

Dim eno

Dim txtfind As String

Private Sub cmbSex_LostFocus()

'txtNational.SetFocus

End Sub

Private Sub cmdadd_Click()

Call ControlEnable

If cmdAdd.Caption = "&Add" Then

Call ControlClear

rs.AddNew

txtNational.Text = "INDIAN"

txtsearchAppno.SetFocus

txtsearchAppno.Text = ""

cmdAdd.Caption = "&Cancel"

'cmdSave.Enabled = True

ElseIf cmdAdd.Caption = "&Cancel" Then

rs.CancelUpdate

cmdAdd.Caption = "&Add"

'cmdSave.Enabled = False

Call ControlClear

End If

End Sub

Sub ControlClear()

txtEnqNo.Text = ""

txtEnqName.Text = ""

EnqDate.Enabled = True

cmbIntName.Text = ""

txtAppNo.Text = ""

txtAdminDate.Enabled = True
txtDOB.Enabled = True

txtPhoneNo.Text = ""

txtMNo.Text = ""

txtName.Text = ""

txtArea.Text = ""

txtCity.Text = ""

txtFathername.Text = ""

txtAddress.Text = ""

txtNational.Text = ""

txtcourse.Text = ""

txtsem.Text = ""

cmbSex.Text = ""

optyes.VALUE = False

Optno.VALUE = False

txtfee.Text = ""

'For cc = 0 To 5

'chkcourse(cc).VALUE = 0

'combstream(cc).Text = ""

'txtpy(cc).Text = ""

'txtpm(cc).Text = ""

'txtUniv(cc).Text = ""

'Next

txtEmailId.Text = ""

txtcurdesig.Text = ""

txtcompname.Text = ""

combadmtype.Text = ""

End Sub

Private Sub cmdAddQ_Click()

If txtCertiDeploma.Text <> "" And txtYOE.Text <> "" And txtUniBoard.Text <> "" And
txtMarksPer.Text <> "" Then
With lstVQulif

Set lstItem = .ListItems.Add(, , txtCertiDeploma)

lstItem.SubItems(1) = txtYOE

lstItem.SubItems(2) = txtUniBoard

lstItem.SubItems(3) = txtMarksPer

End With

txtCertiDeploma.Text = ""

txtYOE.Text = ""

txtUniBoard.Text = ""

txtMarksPer.Text = ""

Else

MsgBox "One or more fields are empty." & Chr(13) & Space(4) & "Please fill all fields.",
vbCritical, "Error..."

If txtCertiDeploma.Text = "" Then

txtCertiDeploma.SetFocus

ElseIf txtYOE.Text = "" Then

txtYOE.SetFocus

ElseIf txtUniBoard.Text = "" Then

txtUniBoard.SetFocus

ElseIf txtMarksPer.Text = "" Then

txtMarksPer.SetFocus

End If

End If

End Sub

Private Sub cmddelete_Click()

txtfind = Trim(InputBox("ENTER APP. NO.->"))

If txtfind = "" Then

MsgBox ("haven't entered anything")

Else

rs.MoveFirst
rs.Find "[std_appno]=" & "'" & txtfind & "'" & ""

If rs.BOF Or rs.EOF Then

MsgBox "RECORD NOT FOUND....!", vbInformation

Exit Sub

Else

Call display

End If

Dim s As String

s = MsgBox("Are You Sure Delete This Record?", vbYesNo + vbQuestion, "Deleting...?")

If s = vbYes Then

rs.Delete

rs1.Delete

'Call clear

End If

End If

End Sub

Private Sub cmdExit_Click()

Unload Me

End Sub

Private Sub cmdfirst_Click()

If rs.EOF And rs.BOF Then

MsgBox ("No Record In The Database")

Else

If rs1.EOF And rs1.BOF Then

MsgBox ("No Record In The Database")

Else

rs.MoveFirst

rs1.MoveFirst

Call display
End If

End If

End Sub

Sub display()

txtAppNo.Text = rs(0)

txtName.Text = rs(2)

txtFathername.Text = rs(3)

txtDOB.VALUE = rs(4)

cmbSex.Text = rs(5)

txtNational.Text = rs(6)

txtAddress.Text = rs(7)

txtPhoneNo.Text = rs(8)

txtMNo.Text = rs(9)

cmbIntName.Text = rs(10)

txtcourse.Text = rs(11)

txtAdminDate.VALUE = rs(12)

If rs(13) = "yes" Then

optyes.VALUE = 1

Else

If rs(13) = "no" Then

Optno.VALUE = 1

End If

txtsem.Text = rs(14)

combsession.Text = rs(15)

'calander.Value = rs(14)

'txtCertiDeploma.Text = rs1(1)

'txtUniBoard.Text = rs1(2)

'txtYOE.Text = rs1(3)

'txtMarksPer.Text = rs1(4)

End If

Dim rsa As New ADODB.Recordset


Dim rsa1 As New ADODB.Recordset

enq = "select count(std_qualification) from tbl_student_qualification where std_appno='" &


txtAppNo.Text & "'"

If rsa.State = adStateOpen Then

rsa.Close

End If

rsa.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsa(0)

enq1 = "select * from tbl_student_qualification where std_appno='" & txtAppNo.Text & "'"

If rsa1.State = adStateOpen Then

rsa1.Close

End If

rsa1.Open enq1, con, adOpenDynamic, adLockOptimistic

For i = 0 To c - 1

'While rsenqual1.EOF = False

'If rsa1(1) = "10th" Then

'chkcourse(i).VALUE = 1

'combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'ElseIf rsa1(1) = "12th" Then

'chkcourse(i).VALUE = 1

'combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'ElseIf rsa1(1) = "Graduation" Then

'chkcourse(i).VALUE = 1

''combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'ElseIf rsa1(1) = "Post Graduate" Then


'chkcourse(i).VALUE = 1

'combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'ElseIf rsa1(1) = "Diploma" Then

'chkcourse(i).VALUE = 1

'combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'ElseIf rsa1(1) = "Others" Then

'chkcourse(i).VALUE = 1

'combstream(i).Text = rsa1(2)

'txtpy(i).Text = rsa1(3)

'txtpm(i).Text = rsa1(4)

'End If

rsa1.MoveNext

'Wend

Next

End Sub

Private Sub cmdlast_Click()

If rs.EOF And rs.BOF And rs1.EOF And rs1.BOF Then

MsgBox ("No Record In The Database")

If rs.BOF And rs1.BOF Then

MsgBox ("End of record")

Else

rs.MoveLast

rs1.MoveLast

Call display

End If

End If

End Sub
Private Sub cmdmodify_Click()

Dim txtfind As String

txtfind = Trim(InputBox("ENTER APP. NO.->"))

If txtfind = "" Then

MsgBox ("haven't entered anything")

Else

rs.MoveFirst

rs.Find "[std_appno]=" & "'" & txtfind & "'" & ""

If rs.BOF Or rs.EOF Then

MsgBox "RECORD NOT FOUND....!", vbInformation

Exit Sub

Else

Call display

End If

End If

Dim s

s = MsgBox("Do U Want To Modify The Record", 64 + vbYesNo, "Modify Record")

If s = vbYes Then

cmbIntName.Enabled = True

Call ControlEnable

'Call gif

cmdSave.Enabled = True

txtAppNo.Locked = True

'MsgBox ("Application number cannot be changed...")

End If

End Sub

Private Sub cmdnamecourse_Click()

'listdetails2.Visible = True

listdetails.Visible = False

Dim rsenq As New ADODB.Recordset


enq = "select * from qry_EnqPropDetails where trim(Enq_Name)='" & Trim(txtEnqName.Text) &
"' and trim(Enq_Course)='" & Trim(combcrs.Text) & "'"

If rsenq.State = adStateOpen Then

rsenq.Close

End If

rsenq.Open enq, con, adOpenDynamic, adLockOptimistic

If rsenq.EOF And rsenq.BOF Then

MsgBox ("No Record")

Exit Sub

End If

If rsenq(0) <> "" Then

txtEnqNo.Text = rsenq(0)

End If

If rsenq(2) <> "" Then

txtAppNo.Text = rsenq(2)

End If

If rsenq(21) <> "" Then

combsession.Text = rsenq(21)

End If

If rsenq(3) <> "" Then

cmbIntName.Text = rsenq(3)

End If

If rsenq(1) <> "" Then

txtName.Text = rsenq(1)

End If

If rsenq(4) <> "" Then

txtFathername.Text = rsenq(4)

End If

If rsenq(5) <> "" Then

txtAddress.Text = rsenq(5)
End If

If rsenq(12) <> "" Then

txtArea.Text = rsenq(12)

End If

If rsenq(13) <> "" Then

txtCity.Text = rsenq(13)

End If

If rsenq(6) <> "" Then

txtPhoneNo.Text = rsenq(6)

End If

If rsenq(7) <> "" Then

txtMNo.Text = rsenq(7)

End If

If rsenq(19) <> "" Then

txtcourse.Text = rsenq(19)

End If

If rsenq(20) <> "" Then

txtsem.Text = rsenq(20)

End If

If rsenq(18) <> "" Then

If rsenq(18) = "Yes" Then

optyes.VALUE = True

Else

Optno.VALUE = True

End If

End If

If rsenq(24) <> "" Then

txtmno2.Text = rsenq(24)

End If

If rsenq(25) <> "" Then

txtwllno.Text = rsenq(25)
End If

'**********************qualification************************

Dim rsenqual As New ADODB.Recordset

Dim rsenqual1 As New ADODB.Recordset

enq = "select count(enlq_course) from tbl_Enquiry_Lastqualification where Enq_Enqno='" &


txtEnqNo.Text & "'"

If rsenqual.State = adStateOpen Then

rsenqual.Close

End If

rsenqual.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsenqual(0)

enq1 = "select * from tbl_Enquiry_Lastqualification where Enq_Enqno='" & txtEnqNo.Text &


"'"

If rsenqual1.State = adStateOpen Then

rsenqual1.Close

End If

rsenqual1.Open enq1, con, adOpenDynamic, adLockOptimistic

For i = 0 To c - 1

'While rsenqual1.EOF = False

If rsenqual1(1) = "10th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "12th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Graduation" Then

chkcourse(i).VALUE = 1
combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Post Graduate" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Diploma" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Others" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

End If

rsenqual1.MoveNext

'Wend

Next

End Sub

Private Sub cmdnext_Click()

If rs.EOF Then

MsgBox ("End Of Record...")

Else

If rs1.EOF Then

MsgBox ("End Of Record...")

Else
rs.MoveNext

rs1.MoveNext

If Not rs.EOF And rs1.EOF Then

Call display

End If

End If

End If

End Sub

Private Sub cmdprevious_Click()

If rs.BOF And rs1.BOF Then

rs.MoveFirst

rs1.MoveFirst

MsgBox ("Begining Of The Record...")

Else

rs.MovePrevious

rs1.MovePrevious

If Not rs.BOF And rs1.BOF Then

Call display

End If

End If

End Sub

Private Sub cmdSave_Click()

If txtAppNo.Text = "" Then

MsgBox "Application No. can not be empty.", vbCritical, "Error..."

txtAppNo.SetFocus

Exit Sub

ElseIf IsDate(txtAdminDate.VALUE) = False Then

MsgBox "Addmission Date can not be empty.", vbCritical, "Error..."

txtAdminDate.SetFocus
Exit Sub

ElseIf txtName.Text = "" Then

MsgBox "Name can not be empty.", vbCritical, "Error..."

txtName.SetFocus

Exit Sub

ElseIf txtFathername.Text = "" Then

MsgBox "Father's/Spouse Name can not be empty.", vbCritical, "Error..."

txtFathername.SetFocus

Exit Sub

ElseIf IsDate(txtDOB.VALUE) = False Then

MsgBox "Date of Birth can not be empty.", vbCritical, "Error..."

txtDOB.SetFocus

Exit Sub

ElseIf cmbIntName.Text = "" Then

MsgBox "Institute Name Missing...", vbCritical, "Error..."

cmbIntName.SetFocus

Exit Sub

ElseIf txtAddress.Text = "" Then

MsgBox "Address Detail is empty.", vbCritical, "Error..."

txtAddress.SetFocus

Exit Sub

ElseIf txtNational.Text = "" Then

MsgBox "Nationality Must Be Mensioned.", vbCritical, "Error..."

txtNational.SetFocus

Exit Sub

ElseIf IsDate(txtDOB.VALUE) = False Then

MsgBox "Date Of Birth can not be empty.", vbCritical, "Error..."

txtDOB.SetFocus

Exit Sub

ElseIf cmbSex.Text = "" Then


MsgBox "Must Not Be Empty.", vbCritical, "Error..."

cmbSex.SetFocus

Exit Sub

End If

If rs.BOF And rs.EOF Then 'And rs1.BOF And rs1.EOF Then

MsgBox ("no record in database")

Exit Sub

End If

rs(1) = txtEnqNo.Text

rs(0) = txtAppNo.Text

rs(2) = txtName.Text

rs(3) = txtFathername.Text

rs(4) = txtDOB.VALUE

rs(5) = cmbSex.Text

rs(6) = txtNational.Text

rs(7) = txtAddress.Text

rs(8) = txtPhoneNo.Text

rs(9) = txtMNo.Text

rs(10) = cmbIntName.Text

rs(11) = txtcourse.Text

rs(12) = txtAdminDate.VALUE

If optyes = True Then

rs(13) = "yes"

Else

rs(13) = "no"

End If

rs(14) = txtsem.Text

rs(15) = combsession.Text

rs(16) = txtmno2.Text

rs(17) = txtwllno.Text

rs(18) = txtArea.Text
rs(19) = txtCity.Text

rs(20) = combadmtype.Text

rs(21) = frmlogin.uid

rs(22) = Now()

rs(26) = txtcompname.Text

rs(27) = txtcurdesig.Text

rs(28) = txtEmailId.Text

rs.Update

'============student id entry=============

'Dim rsmx As New ADODB.Recordset

'If rsmx.State = adStateOpen Then

'rsmx.Close

'End If

'ses = "Aug 2009"

'rsmx.Open "select max(std_RollNo) from tbl_Stud_Master_IDEntry where std_session='" & ses


& "'", con, adOpenDynamic, adLockOptimistic

'MsgBox (rsmx(0))

'ct = rsmx(0)

'If rsid.State = adStateOpen Then

'rsid.Close

'End If

'rsid.Open "select * from tbl_Stud_Master_IDEntry", con, adOpenDynamic, adLockOptimistic

'rsid.AddNew

'rsid(0) = txtAppNo.Text

'rsid(1) = Val(ct) + 1

'rsid(2) = txtName.Text

'rsid(3) = txtFatherName.Text

'rsid(4) = txtAddress.Text

'rsid(5) = txtMNo.Text

'rsid(6) = txtcourse.Text
'rsid(7) = txtsem.Text

'rsid(8) = combsession.Text

'rsid(9) = txtAdminDate.VALUE

'rsid(10) = txtPhoneNo.Text

'rsid(12) = txtmno2.Text

'rsid(11) = txtwllno.Text

'rsid(13) = Val(ct) + 1

'rsid(14) = txtsem.Text

'rsid(15) = combsession.Text

'

'rsid.Update

'**************student qualification*****************

If rs1.BOF And rs1.EOF Then

MsgBox ("no record in database")

Exit Sub

Else

For i = 0 To 5

If chkcourse(i).VALUE = 1 Then

c = c + 1

End If

Next

For i = 0 To c - 1

If txtpy(i).Text = "" Then

MsgBox ("Please enter passing year")

txtpy(i).SetFocus

Exit For

End If

If txtUniv(i).Text = "" Then

MsgBox ("Please enter University")


txtUniv(i).SetFocus

Exit For

End If

If txtpm(i).Text = "" Then

MsgBox ("Please enter % Marks")

txtpm(i).SetFocus

Exit For

End If

Next

For j = 0 To c - 1

rs1.AddNew

rs1(0) = txtAppNo.Text

rs1(1) = chkcourse(j).Caption

rs1(2) = combstream(j).Text

rs1(3) = txtUniv(j).Text

rs1(4) = txtpy(j).Text

rs1(5) = txtpm(j).Text

rs1.Update

Next

End If

MsgBox ("Your Details are Sucessfuly been Updated. Please make payment before closing the
screen.")

Command2.Enabled = True

'Call ControlClear

Call list

'End If

cmdAdd.Caption = "&Add"

End Sub

Private Sub cmdsearchforpay_Click()


Dim txtfind As String

txtfind = Trim(InputBox("ENTER APP. NO.->"))

If txtfind = "" Then

MsgBox ("haven't entered anything")

Else

rs.MoveFirst

rs.Find "[std_appno]=" & "'" & txtfind & "'" & ""

If rs.BOF Or rs.EOF Then

MsgBox "RECORD NOT FOUND....!", vbInformation

Exit Sub

Else

Call display

End If

End If

Command2.Enabled = True

MsgBox ("Click on Admission Payment Button")

End Sub

Private Sub cmdshowdata_Click()

listdetails.Visible = True

End Sub

Private Sub combcrs_Click()

listdetails.Visible = False

listdetails2.Visible = True

listdetails2.ListItems.clear

j = 1

c = 0

Dim rsenq As New ADODB.Recordset

enq = "select * from qry_EnqPropDetails where trim(Enq_Course)='" & Trim(combcrs.Text) &


"' order by App_No"
If rsenq.State = adStateOpen Then

rsenq.Close

End If

rsenq.Open enq, con, adOpenDynamic, adLockOptimistic

If rsenq.EOF And rsenq.BOF Then

MsgBox ("No Record")

Exit Sub

End If

While rsenq.EOF = False

If rsenq(2) <> "" Then

listdetails2.ListItems.Add(j) = rsenq(2)

End If

If rsenq(0) <> "" Then

listdetails2.ListItems(j).SubItems(1) = rsenq(0)

End If

If rsenq(1) <> "" Then

listdetails2.ListItems(j).SubItems(2) = rsenq(1)

End If

If rsenq(4) <> "" Then

listdetails2.ListItems(j).SubItems(3) = rsenq(4)

End If

If rsenq(5) <> "" Then

listdetails2.ListItems(j).SubItems(4) = rsenq(5)

End If

If rsenq(6) <> "" Then

listdetails2.ListItems(j).SubItems(5) = rsenq(6)

End If

If rsenq(7) <> "" Then

listdetails2.ListItems(j).SubItems(6) = rsenq(7)

End If
If rsenq(19) <> "" Then

listdetails2.ListItems(j).SubItems(7) = rsenq(19)

End If

If rsenq(18) <> "" Then

listdetails2.ListItems(j).SubItems(8) = rsenq(18)

End If

If rsenq(20) <> "" Then

listdetails2.ListItems(j).SubItems(9) = rsenq(20)

End If

If rsenq(21) <> "" Then

listdetails2.ListItems(j).SubItems(10) = rsenq(21)

End If

If rsenq(24) <> "" Then

listdetails2.ListItems(j).SubItems(15) = rsenq(24)

End If

If rsenq(25) <> "" Then

listdetails2.ListItems(j).SubItems(16) = rsenq(25)

End If

If rsenq(12) <> "" Then

listdetails2.ListItems(j).SubItems(17) = rsenq(12)

End If

If rsenq(13) <> "" Then

listdetails2.ListItems(j).SubItems(18) = rsenq(13)

End If

rsenq.MoveNext

j = j + 1

c = c + 1

Wend

lblrec.Caption = c

'**********************qualification************************

Dim rsenqual As New ADODB.Recordset


Dim rsenqual1 As New ADODB.Recordset

enq = "select count(enlq_course) from tbl_Enquiry_Lastqualification where Enq_Enqno='" &


txtEnqNo.Text & "'"

If rsenqual.State = adStateOpen Then

rsenqual.Close

End If

rsenqual.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsenqual(0)

enq1 = "select * from tbl_Enquiry_Lastqualification " 'where Enq_Enqno='" & txtEnqNo.Text


& "'"

If rsenqual1.State = adStateOpen Then

rsenqual1.Close

End If

rsenqual1.Open enq1, con, adOpenDynamic, adLockOptimistic

d = 1

While rsenqual1.EOF = False

listdetails1.ListItems.Add(d) = rsenqual1(0)

listdetails1.ListItems(d).SubItems(1) = rsenqual1(1)

listdetails1.ListItems(d).SubItems(2) = rsenqual1(2)

listdetails1.ListItems(d).SubItems(3) = rsenqual1(3)

listdetails1.ListItems(d).SubItems(4) = rsenqual1(4)

'listdetails1.ListItems(d).SubItems(5) = rsenqual1(5)

rsenqual1.MoveNext

Wend

End Sub

Private Sub Command1_Click()

'cmdAdd.Enabled = True

'
' cmdSave.Enabled = False

'

'Me.Hide

'frmSearchByAdd.Show vbModal

frmAdmissionFee.Show

End Sub

Private Sub Command2_Click()

frmAdmissionFee.Show

End Sub

Private Sub Command3_Click()

Call detailsh

'listdetails2.Visible = True

listdetails.Visible = False

End Sub

Private Sub Command5_Click()

frmSearchByAdd.Show

End Sub

Private Sub Form_Activate()

cmdAdd.Enabled = True

End Sub

Private Sub Form_Load()

txtcompname.Enabled = False

txtcurdesig.Enabled = False

Command2.Enabled = False

txtAdminDate.VALUE = Date

combstream(0).AddItem "None"

combstream(0).AddItem "Arts"
combstream(0).AddItem "Commerce"

combstream(0).AddItem "Science"

combstream(1).AddItem "None"

combstream(1).AddItem "Arts"

combstream(1).AddItem "Commerce"

combstream(1).AddItem "Science"

combstream(2).AddItem "None"

combstream(2).AddItem "BA"

combstream(2).AddItem "BBA"

combstream(2).AddItem "BCA"

combstream(2).AddItem "BCOM"

combstream(2).AddItem "BE"

combstream(2).AddItem "BSC"

combstream(2).AddItem "BSCIT"

combstream(3).AddItem "None"

combstream(3).AddItem "MA"

combstream(3).AddItem "MBA"

combstream(3).AddItem "MCA"

combstream(3).AddItem "MCOM"

combstream(3).AddItem "MSC"

combstream(3).AddItem "MSCIT"

listdetails2.Visible = False

listdetails.Visible = False

cmdAdd.Enabled = True

cmdSave.Enabled = False

Call ControlDisable

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

'Set con = New ADODB.Connection

'con.Open "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\giitsuman.mdb"


Set rs = New ADODB.Recordset

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select * from tbl_stud_master_admission", con, adOpenDynamic, adLockOptimistic

If rs1.State = adStateOpen Then

rs1.Close

End If

rs1.Open "select * from tbl_student_qualification", con, adOpenDynamic, adLockOptimistic

If rscrs.State = adStateOpen Then

rscrs.Close

End If

rscrs.Open "select * from tbl_Course_Master order by crs_courseid", con, adOpenDynamic,


adLockOptimistic

While rscrs.EOF = False

txtcourse.AddItem rscrs(2)

combdetail.AddItem rscrs(3)

combcrs.AddItem rscrs(2)

rscrs.MoveNext

Wend

If rssession.State = adStateOpen Then

rssession.Close

End If

rssession.Open "select * from tbl_Session order by crs_sessiondate desc", con,


adOpenDynamic, adLockOptimistic

While rssession.EOF = False

combsession.AddItem rssession(0)

rssession.MoveNext

Wend

Call list
End Sub

Sub ControlDisable()

txtEnqNo.Enabled = False

txtEnqName.Enabled = False

EnqDate.Enabled = False

cmbIntName.Enabled = False

txtAppNo.Enabled = False

txtAdminDate.Enabled = False

txtDOB.Enabled = False

txtPhoneNo.Enabled = False

txtMNo.Enabled = False

txtName.Enabled = False

txtArea.Enabled = False

txtCity.Enabled = False

txtFathername.Enabled = False

txtAddress.Enabled = False

txtNational.Enabled = False

txtcourse.Enabled = False

txtsem.Enabled = False

cmbSex.Enabled = False

optyes.Enabled = False

Optno.Enabled = False

txtfee.Enabled = False

Frame9.Enabled = False

cmdSave.Enabled = False

txtEmailId.Enabled = False

txtcurdesig.Enabled = False

txtcompname.Enabled = False

combadmtype.Enabled = False

End Sub

Sub ControlEnable()
txtEnqNo.Enabled = True

txtEnqName.Enabled = True

EnqDate.Enabled = True

cmbIntName.Enabled = True

txtAppNo.Enabled = True

txtAdminDate.Enabled = True

txtDOB.Enabled = True

txtPhoneNo.Enabled = True

txtMNo.Enabled = True

txtName.Enabled = True

txtArea.Enabled = True

txtCity.Enabled = True

txtFathername.Enabled = True

txtAddress.Enabled = True

txtNational.Enabled = True

txtcourse.Enabled = True

txtsem.Enabled = True

cmbSex.Enabled = True

optyes.Enabled = True

Optno.Enabled = True

txtfee.Enabled = True

Frame9.Enabled = True

cmdSave.Enabled = True

cmdModify.Enabled = True

cmdDelete.Enabled = True

txtEmailId.Enabled = True

'txtcurdesig.Enabled = False

'txtcompname.Enabled = False

combadmtype.Enabled = True

End Sub

Public Sub list()


listdetails.ListItems.clear

j = 1

Dim rs As New ADODB.Recordset

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "SELECT * FROM tbl_stud_master_admission order by std_appno", con, adOpenDynamic,


adLockOptimistic

If rs.BOF And rs.EOF Then

ToolTipText = "no record"

MsgBox "no record in the database"

Else

End If

If rs.BOF = False Then rs.MoveFirst

While Not rs.EOF

With rs

If Not (.Fields(0)) = "" Then

listdetails.ListItems.Add(j) = .Fields(0).VALUE

End If

If Not (.Fields(1)) = "" Then

listdetails.ListItems(j).SubItems(1) = .Fields(1).VALUE

End If

If Not (.Fields(2)) = "" Then

listdetails.ListItems(j).SubItems(2) = .Fields(2).VALUE

End If

If Not (.Fields(3)) = "" Then

listdetails.ListItems(j).SubItems(3) = .Fields(3).VALUE

End If

If Not (.Fields(4)) = "" Then

listdetails.ListItems(j).SubItems(4) = .Fields(4).VALUE

End If
If Not (.Fields(5)) = "" Then

listdetails.ListItems(j).SubItems(5) = .Fields(5).VALUE

End If

If Not (.Fields(6)) = "" Then

listdetails.ListItems(j).SubItems(6) = .Fields(6).VALUE

End If

If Not (.Fields(7)) = "" Then

listdetails.ListItems(j).SubItems(7) = .Fields(7).VALUE

End If

If Not (.Fields(8)) = "" Then

listdetails.ListItems(j).SubItems(8) = .Fields(8).VALUE

End If

If Not (.Fields(9)) = "" Then

listdetails.ListItems(j).SubItems(9) = .Fields(9).VALUE

End If

If Not (.Fields(10)) = "" Then

listdetails.ListItems(j).SubItems(10) = .Fields(10).VALUE

End If

If Not (.Fields(11)) = "" Then

listdetails.ListItems(j).SubItems(11) = .Fields(11).VALUE

End If

If Not (.Fields(12)) = "" Then

listdetails.ListItems(j).SubItems(12) = .Fields(12).VALUE

End If

If Not (.Fields(13)) = "" Then

listdetails.ListItems(j).SubItems(13) = .Fields(13).VALUE

End If

If Not (.Fields(14)) = "" Then

listdetails.ListItems(j).SubItems(14) = .Fields(14).VALUE

End If

If Not (.Fields(15)) = "" Then


listdetails.ListItems(j).SubItems(15) = .Fields(15).VALUE

End If

If Not (.Fields(16)) = "" Then

listdetails.ListItems(j).SubItems(20) = .Fields(16).VALUE

End If

If Not (.Fields(17)) = "" Then

listdetails.ListItems(j).SubItems(21) = .Fields(17).VALUE

End If

If Not (.Fields(18)) = "" Then

listdetails.ListItems(j).SubItems(22) = .Fields(18).VALUE

End If

If Not (.Fields(19)) = "" Then

listdetails.ListItems(j).SubItems(23) = .Fields(19).VALUE

End If

If Not (.Fields(20)) = "" Then

listdetails.ListItems(j).SubItems(24) = .Fields(20).VALUE

End If

If Not (.Fields(26)) = "" Then

listdetails.ListItems(j).SubItems(25) = .Fields(26).VALUE

End If

If Not (.Fields(27)) = "" Then

listdetails.ListItems(j).SubItems(26) = .Fields(27).VALUE

End If

If Not (.Fields(28)) = "" Then

listdetails.ListItems(j).SubItems(27) = .Fields(28).VALUE

End If

j = j + 1

rs.MoveNext

End With

Wend

lblrec.Caption = j
End Sub

Private Sub cmdSearch_Click()

frmEnqSearch.Show

End Sub

Private Sub Form_Unload(Cancel As Integer)

If Command2.Enabled = True Then

MsgBox ("First you complete payment entry")

End If

End Sub

Private Sub listdetails_Click()

Dim rsenq1 As New ADODB.Recordset

Dim searchstr As String

eno = listdetails.SelectedItem.Text

'ENO = rsenq1(0)

searchstr = "select * from tbl_stud_master_admission where std_appno='" & eno & "'"

rsenq1.Open searchstr, con, adOpenDynamic, adLockOptimistic

If rsenq1.BOF And rsenq1.EOF Then

MsgBox "record set is empty"

Exit Sub

End If

If rsenq1.BOF = False Then

rsenq1.MoveFirst

End If

If MsgBox(Space(13) & "You Select App No." & eno & Chr(13), vbYesNo, "O.A. System") =
vbYes Then

txtAppNo.Text = eno

With rsenq1

If .Fields(1).VALUE <> "" Then

txtEnqNo.Text = .Fields(1).VALUE
End If

If .Fields(10).VALUE <> "" Then

cmbIntName.Text = .Fields(10).VALUE

End If

If .Fields(0).VALUE <> "" Then

txtAppNo.Text = .Fields(0).VALUE

End If

If .Fields(12).VALUE <> "" Then

txtAdminDate.VALUE = .Fields(12).VALUE

End If

If .Fields(4).VALUE <> "" Then

txtDOB.VALUE = .Fields(4).VALUE

End If

If .Fields(8).VALUE <> "" Then

txtPhoneNo.Text = .Fields(8).VALUE

End If

If .Fields(9).VALUE <> "" Then

txtMNo.Text = .Fields(9).VALUE

End If

If .Fields(2).VALUE <> "" Then

txtName.Text = .Fields(2).VALUE

End If

If .Fields(3).VALUE <> "" Then

'txtArea.Text = .Fields(1).VALUE

'txtCity.Text = .Fields(1).VALUE

txtFathername.Text = .Fields(3).VALUE

End If

If .Fields(7).VALUE <> "" Then

txtAddress.Text = .Fields(7).VALUE

End If

If .Fields(6).VALUE <> "" Then


txtNational.Text = .Fields(6).VALUE

End If

If .Fields(11).VALUE <> "" Then

txtcourse.Text = .Fields(11).VALUE

End If

If .Fields(14).VALUE <> "" Then

txtsem.Text = .Fields(14).VALUE

End If

If .Fields(5).VALUE <> "" Then

cmbSex.Text = .Fields(5).VALUE

End If

If .Fields(13).VALUE <> "" Then

If .Fields(13) = "Yes" Then

optyes.VALUE = True

Else

Optno.VALUE = True

End If

End If

If .Fields(15).VALUE <> "" Then

combsession.Text = .Fields(15).VALUE

End If

If .Fields(16).VALUE <> "" Then

txtmno2.Text = .Fields(16).VALUE

End If

If .Fields(17).VALUE <> "" Then

txtwllno.Text = .Fields(17).VALUE

End If

If .Fields(18).VALUE <> "" Then

txtArea.Text = .Fields(18).VALUE

End If

If .Fields(19).VALUE <> "" Then


txtCity.Text = .Fields(19).VALUE

End If

If .Fields(20).VALUE <> "" Then

combadmtype.Text = .Fields(20).VALUE

End If

If .Fields(26).VALUE <> "" Then

txtcompname.Text = .Fields(26).VALUE

End If

If .Fields(27).VALUE <> "" Then

txtcurdesig.Text = .Fields(27).VALUE

End If

If .Fields(28).VALUE <> "" Then

txtEmailId.Text = .Fields(28).VALUE

End If

End With

End If

End Sub

Private Sub Optno_Click()

txtcompname.Enabled = False

txtcurdesig.Enabled = False

End Sub

Private Sub optyes_Click()

txtcompname.Enabled = True

txtcurdesig.Enabled = True

End Sub

Private Sub txtappno_LostFocus()

'combsession.SetFocus

End Sub

Private Sub txtcourse_Click()


rscrs.MoveFirst

While rscrs.EOF = False

If (rscrs(2)) = txtcourse.Text Then

combdetail.Text = rscrs(3)

End If

rscrs.MoveNext

Wend

End Sub

Private Sub combdetail_Click()

rscrs.MoveFirst

While rscrs.EOF = False

If (rscrs(3)) = combdetail.Text Then

txtcourse.Text = rscrs(2)

End If

rscrs.MoveNext

Wend

End Sub

Private Sub txtDOB_LostFocus()

'cmbSex.SetFocus

End Sub

Private Sub txtNational_LostFocus()

'txtAdminDate.SetFocus

End Sub

Public Sub List1()

listdetails.Visible = False

listdetails2.Visible = True

listdetails2.ListItems.clear
j = 1

Dim rs2 As New ADODB.Recordset

If rs2.State = adStateOpen Then

rs2.Close

End If

rs2.Open "SELECT * FROM qur_pros_com_det where Enq_Name='" & (txtEnqName.Text) & "'", con,
adOpenDynamic, adLockOptimistic

If rs2.BOF And rs2.EOF Then

ToolTipText = "no record"

MsgBox "no record in the database"

Else

End If

If rs2.BOF = False Then rs2.MoveFirst

While Not rs2.EOF

With rs2

If Not (.Fields(0)) = "" Then

listdetails2.ListItems.Add(j) = .Fields(0).VALUE

End If

If Not (.Fields(10)) = "" Then

listdetails2.ListItems(j).SubItems(1) = .Fields(1).VALUE

End If

If Not (.Fields(2)) = "" Then

listdetails2.ListItems(j).SubItems(2) = .Fields(2).VALUE

End If

If Not (.Fields(3)) = "" Then

listdetails2.ListItems(j).SubItems(3) = .Fields(3).VALUE

End If

If Not (.Fields(4)) = "" Then

listdetails2.ListItems(j).SubItems(4) = .Fields(4).VALUE

End If

If Not (.Fields(5)) = "" Then


listdetails2.ListItems(j).SubItems(5) = .Fields(5).VALUE

End If

If Not (.Fields(6)) = "" Then

listdetails2.ListItems(j).SubItems(6) = .Fields(6).VALUE

End If

If Not (.Fields(7)) = "" Then

listdetails2.ListItems(j).SubItems(7) = .Fields(7).VALUE

End If

If Not (.Fields(8)) = "" Then

listdetails2.ListItems(j).SubItems(8) = .Fields(8).VALUE

End If

If Not (.Fields(10)) = "" Then

listdetails2.ListItems(j).SubItems(10) = .Fields(10).VALUE

End If

If Not (.Fields(11)) = "" Then

listdetails2.ListItems(j).SubItems(11) = .Fields(11).VALUE

End If

If Not (.Fields(12)) = "" Then

listdetails2.ListItems(j).SubItems(12) = .Fields(12).VALUE

End If

If Not (.Fields(13)) = "" Then

listdetails2.ListItems(j).SubItems(13) = .Fields(13).VALUE

End If

If Not (.Fields(14)) = "" Then

listdetails2.ListItems(j).SubItems(14) = .Fields(14).VALUE

End If

If Not (.Fields(15)) = "" Then

listdetails2.ListItems(j).SubItems(15) = .Fields(15).VALUE

End If

If Not (.Fields(16)) = "" Then

listdetails2.ListItems(j).SubItems(16) = .Fields(16).VALUE
End If

If Not (.Fields(17)) = "" Then

listdetails2.ListItems(j).SubItems(17) = .Fields(17).VALUE

End If

If Not (.Fields(18)) = "" Then

listdetails2.ListItems(j).SubItems(18) = .Fields(18).VALUE

End If

If Not (.Fields(19)) = "" Then

listdetails2.ListItems(j).SubItems(19) = .Fields(19).VALUE

End If

If Not (.Fields(20)) = "" Then

listdetails2.ListItems(j).SubItems(20) = .Fields(20).VALUE

End If

j = j + 1

rs2.MoveNext

End With

Wend

End Sub

Public Sub list2()

listdetails2.Visible = True

j = 1

If rs2.State = adStateOpen Then

rs2.Close

End If

rs2.Open "SELECT * FROM tbl_Enquary_Detail where Enq_Enqdt=#" & Trim(Format(EnqDate.VALUE,


"mm/dd/yyyy")) & "#", con, adOpenDynamic, adLockOptimistic

If rs2.BOF And rs2.EOF Then

ToolTipText = "no record"

MsgBox "no record in the database"

Else
End If

If rs2.BOF = False Then rs2.MoveFirst

While Not rs2.EOF

With rs2

If Not (.Fields(1)) = "" Then

listdetails2.ListItems.Add(j) = .Fields(1).VALUE

End If

If Not (.Fields(3)) = "" Then

listdetails2.ListItems(j).SubItems(1) = .Fields(3).VALUE

End If

If Not (.Fields(4)) = "" Then

listdetails2.ListItems(j).SubItems(2) = .Fields(4).VALUE

End If

If Not (.Fields(19)) = "" Then

listdetails2.ListItems(j).SubItems(3) = .Fields(19).VALUE

End If

If Not (.Fields(20)) = "" Then

listdetails2.ListItems(j).SubItems(4) = .Fields(20).VALUE

End If

If Not (.Fields(11)) = "" Then

listdetails2.ListItems(j).SubItems(5) = .Fields(11).VALUE

End If

If Not (.Fields(2)) = "" Then

listdetails2.ListItems(j).SubItems(6) = .Fields(2).VALUE

End If

If Not (.Fields(5)) = "" Then

listdetails2.ListItems(j).SubItems(7) = .Fields(5).VALUE

End If

If Not (.Fields(12)) = "" Then

listdetails2.ListItems(j).SubItems(8) = .Fields(12).VALUE
End If

If Not (.Fields(13)) = "" Then

listdetails2.ListItems(j).SubItems(9) = .Fields(13).VALUE

End If

If Not (.Fields(6)) = "" Then

listdetails2.ListItems(j).SubItems(10) = .Fields(6).VALUE

End If

If Not (.Fields(7)) = "" Then

listdetails2.ListItems(j).SubItems(11) = .Fields(7).VALUE

End If

If Not (.Fields(18)) = "" Then

listdetails2.ListItems(j).SubItems(12) = .Fields(18).VALUE

End If

j = j + 1

rs2.MoveNext

End With

Wend

End Sub

Private Sub listdetails2_Click()

Dim info, str, str1

info = listdetails2.SelectedItem.Text

Dim rsd As New ADODB.Recordset

If rsd.State = adStateOpen Then

rsd.Close

End If

rsd.Open "SELECT * FROM qry_EnqPropDetails where App_No='" & (info) & "'", con,
adOpenDynamic, adLockOptimistic

If rsd.BOF And rsd.EOF Then

ToolTipText = "no record"

MsgBox "no record in the database"

Else
End If

If rsd.BOF = False Then rsd.MoveFirst

While Not rsd.EOF

'With rsd

If rsd(2) <> "" Then

txtsearchAppno.Text = rsd(2)

End If

If rsd(1) <> "" Then

txtEnqName.Text = rsd(1)

End If

If rsd(0) <> "" Then

txtEnqNo.Text = rsd(0)

End If

If rsd(2) <> "" Then

txtAppNo.Text = rsd(2)

End If

If rsd(21) <> "" Then

combsession.Text = rsd(21)

End If

If rsd(3) <> "" Then

cmbIntName.Text = rsd(3)

End If

If rsd(1) <> "" Then

txtName.Text = rsd(1)

End If

If rsd(4) <> "" Then

txtFathername.Text = rsd(4)

End If

If rsd(5) <> "" Then

txtAddress.Text = rsd(5)

End If
If rsd(12) <> "" Then

txtArea.Text = rsd(12)

End If

If rsd(13) <> "" Then

txtCity.Text = rsd(13)

End If

If rsd(6) <> "" Then

txtPhoneNo.Text = rsd(6)

End If

If rsd(7) <> "" Then

txtMNo.Text = rsd(7)

End If

If rsd(19) <> "" Then

txtcourse.Text = rsd(19)

End If

If rsd(20) <> "" Then

txtsem.Text = rsd(20)

End If

If rsd(18) <> "" Then

If rsd(18) = "Yes" Then

optyes.VALUE = True

Else

Optno.VALUE = True

End If

End If

If rsd(24) <> "" Then

txtmno2.Text = rsd(24)

End If

If rsd(25) <> "" Then

txtwllno.Text = rsd(25)

End If
If rsd(26) <> "" Then

combadmtype.Text = rsd(26)

End If

rsd.MoveNext

Wend

'**********************qualification************************

Dim rsenqual As New ADODB.Recordset

Dim rsenqual1 As New ADODB.Recordset

enq = "select count(enlq_course) from tbl_Enquiry_Lastqualification where Enq_Enqno='" &


txtEnqNo.Text & "'"

If rsenqual.State = adStateOpen Then

rsenqual.Close

End If

rsenqual.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsenqual(0)

enq1 = "select * from tbl_Enquiry_Lastqualification where Enq_Enqno='" & txtEnqNo.Text &


"'"

If rsenqual1.State = adStateOpen Then

rsenqual1.Close

End If

rsenqual1.Open enq1, con, adOpenDynamic, adLockOptimistic

For i = 0 To c - 1

'While rsenqual1.EOF = False

If rsenqual1(1) = "10th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "12th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)
txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Graduation" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Post Graduate" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Diploma" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Others" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

End If

rsenqual1.MoveNext

Next

End Sub

Private Sub txtsearchAppno_LostFocus()

Dim rsenq As New ADODB.Recordset

enq = "select * from qry_EnqPropDetails where App_No='" & txtsearchAppno.Text & "'"

If rsenq.State = adStateOpen Then

rsenq.Close
End If

rsenq.Open enq, con, adOpenDynamic, adLockOptimistic

If rsenq.EOF And rsenq.BOF Then

MsgBox ("No Record")

Exit Sub

End If

If rsenq(0) <> "" Then

txtEnqNo.Text = rsenq(0)

End If

If rsenq(2) <> "" Then

txtAppNo.Text = rsenq(2)

End If

If rsenq(21) <> "" Then

combsession.Text = rsenq(21)

End If

If rsenq(3) <> "" Then

cmbIntName.Text = rsenq(3)

End If

If rsenq(1) <> "" Then

txtName.Text = rsenq(1)

End If

If rsenq(4) <> "" Then

txtFathername.Text = rsenq(4)

End If

If rsenq(5) <> "" Then

txtAddress.Text = rsenq(5)

End If

If rsenq(12) <> "" Then

txtArea.Text = rsenq(12)

End If
If rsenq(13) <> "" Then

txtCity.Text = rsenq(13)

End If

If rsenq(6) <> "" Then

txtPhoneNo.Text = rsenq(6)

End If

If rsenq(7) <> "" Then

txtMNo.Text = rsenq(7)

End If

If rsenq(19) <> "" Then

txtcourse.Text = rsenq(19)

End If

If rsenq(20) <> "" Then

txtsem.Text = rsenq(20)

End If

If rsenq(18) <> "" Then

If rsenq(18) = "Yes" Then

optyes.VALUE = True

Else

Optno.VALUE = True

End If

End If

If rsenq(24) <> "" Then

txtmno2.Text = rsenq(24)

End If

If rsenq(25) <> "" Then

txtwllno.Text = rsenq(25)

End If

If rsenq(26) <> "" Then

combadmtype.Text = rsenq(26)

End If
'**********************qualification************************

Dim rsenqual As New ADODB.Recordset

Dim rsenqual1 As New ADODB.Recordset

If txtEnqNo.Text = "" Then

Else

enq = "select count(enlq_course) from tbl_Enquiry_Lastqualification where Enq_Enqno='" &


txtEnqNo.Text & "'"

If rsenqual.State = adStateOpen Then

rsenqual.Close

End If

rsenqual.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsenqual(0).VALUE

enq1 = "select * from tbl_Enquiry_Lastqualification where Enq_Enqno='" & txtEnqNo.Text &


"'"

If rsenqual1.State = adStateOpen Then

rsenqual1.Close

End If

rsenqual1.Open enq1, con, adOpenDynamic, adLockOptimistic

For i = 0 To c - 1

'While rsenqual1.EOF = False

If rsenqual1(1).VALUE = "10th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

ElseIf rsenqual1(1) = "12th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

ElseIf rsenqual1(1) = "Graduation" Then

chkcourse(i).VALUE = 1
'combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

ElseIf rsenqual1(1) = "Post Graduate" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

ElseIf rsenqual1(1) = "Diploma" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

ElseIf rsenqual1(1) = "Others" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2).VALUE

txtpy(i).Text = rsenqual1(3).VALUE

txtpm(i).Text = rsenqual1(4).VALUE

End If

rsenqual1.MoveNext

'Wend

Next

End If

'txtAppNo.SetFocus

End Sub

Sub detailsh()

Dim rsenq As New ADODB.Recordset

enq = "select * from qry_EnqPropDetails where trim(Enq_Name)='" & Trim(txtEnqName.Text) &


"'"

If rsenq.State = adStateOpen Then

rsenq.Close
End If

rsenq.Open enq, con, adOpenDynamic, adLockOptimistic

If rsenq.EOF And rsenq.BOF Then

MsgBox ("No Record")

Exit Sub

End If

If rsenq(0) <> "" Then

txtEnqNo.Text = rsenq(0)

End If

If rsenq(2) <> "" Then

txtAppNo.Text = rsenq(2)

End If

If rsenq(21) <> "" Then

combsession.Text = rsenq(21)

End If

If rsenq(3) <> "" Then

cmbIntName.Text = rsenq(3)

End If

If rsenq(1) <> "" Then

txtName.Text = rsenq(1)

End If

If rsenq(4) <> "" Then

txtFathername.Text = rsenq(4)

End If

If rsenq(5) <> "" Then

txtAddress.Text = rsenq(5)

End If

If rsenq(12) <> "" Then

txtArea.Text = rsenq(12)

End If
If rsenq(13) <> "" Then

txtCity.Text = rsenq(13)

End If

If rsenq(6) <> "" Then

txtPhoneNo.Text = rsenq(6)

End If

If rsenq(7) <> "" Then

txtMNo.Text = rsenq(7)

End If

If rsenq(19) <> "" Then

txtcourse.Text = rsenq(19)

End If

If rsenq(20) <> "" Then

txtsem.Text = rsenq(20)

End If

If rsenq(18) <> "" Then

If rsenq(18) = "Yes" Then

optyes.VALUE = True

Else

Optno.VALUE = True

End If

End If

If rsenq(24) <> "" Then

txtmno2.Text = rsenq(24)

End If

If rsenq(25) <> "" Then

txtwllno.Text = rsenq(25)

End If

If rsenq(26) <> "" Then

combadmtype.Text = rsenq(26)

End If
'**********************qualification************************

Dim rsenqual As New ADODB.Recordset

Dim rsenqual1 As New ADODB.Recordset

enq = "select count(enlq_course) from tbl_Enquiry_Lastqualification where Enq_Enqno='" &


txtEnqNo.Text & "'"

If rsenqual.State = adStateOpen Then

rsenqual.Close

End If

rsenqual.Open enq, con, adOpenDynamic, adLockOptimistic

c = rsenqual(0)

enq1 = "select * from tbl_Enquiry_Lastqualification where Enq_Enqno='" & txtEnqNo.Text &


"'"

If rsenqual1.State = adStateOpen Then

rsenqual1.Close

End If

rsenqual1.Open enq1, con, adOpenDynamic, adLockOptimistic

For i = 0 To c - 1

'While rsenqual1.EOF = False

If rsenqual1(1) = "10th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "12th" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Graduation" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)
txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Post Graduate" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Diploma" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

ElseIf rsenqual1(1) = "Others" Then

chkcourse(i).VALUE = 1

combstream(i).Text = rsenqual1(2)

txtpy(i).Text = rsenqual1(3)

txtpm(i).Text = rsenqual1(4)

End If

rsenqual1.MoveNext

'Wend

Next

'txtAppNo.SetFocus

End Sub

Sub APPCHECK()

'Dim rsap As New ADODB.Recordset

'rs

End Sub
Admission Fee Entry

Source Code
Dim con As ADODB.Connection

Dim rslist As New ADODB.Recordset

Dim rs As New ADODB.Recordset


Dim rs1 As New ADODB.Recordset

Dim rsmr As New ADODB.Recordset

Dim j1

Dim j As Integer

Dim sss As New ADODB.Recordset

Dim cm, mr

Sub cmdadd_Click()

'cmdsave.Enabled = True

End Sub

Private Sub chkpayment_Click()

If chkpayment.VALUE = 1 Then

framepayment.Enabled = True

SS.Enabled = True

Call mrupdate

If sss.State = adStateOpen Then

sss.Close

End If

sss.Open "select * from tbl_MaxMrno", con, adOpenDynamic, adLockOptimistic

If txtmrnodd.Text <> "" Then ' And

sss.AddNew

sss(0) = mr

sss(1) = Now

sss(2) = frmlogin.uid

sss.Update

ElseIf txtmrnoch.Text <> "" Then

sss.AddNew

sss(0) = mr

sss(1) = Now

sss(2) = frmlogin.uid

sss.Update

ElseIf txtmrnocs.Text <> "" Then


sss.AddNew

sss(0) = mr

sss(1) = Now

sss(2) = frmlogin.uid

sss.Update

End If

End If

'End If

cm = 0

End Sub

Private Sub cmdMRMod_Click()

frmFeeModified.Show

End Sub

Private Sub CMDREPRINTRECEIPT_Click()

mn = InputBox("Enter MRNo.")

Dim rslist As New ADODB.Recordset

If rslist.State = adStateOpen Then

rslist.Close

End If

If SS.Caption = "Demand Draft" Then

mrn = Trim(txtmrnodd.Text)

ElseIf SS.Caption = "Cheque" Then

mrn = Trim(txtmrnoch.Text)

Else

mrn = Trim(txtmrnocs.Text)

End If

rslist.Open "SELECT * from tbl_receipt where rec_mr_no='" & Trim(mn) & "'", con,
adOpenDynamic, adLockOptimistic

If rslist.BOF And rslist.EOF Then

MsgBox ("record not found")

Exit Sub
'rslist.MoveFirst

Else

While rslist.EOF = False

If rslist(18) = "M-Male" Then

DataReport6.Sections("Section1").Controls("lblmr").Caption = "MR."

Else

DataReport6.Sections("Section1").Controls("lblmr").Caption = "MS."

End If

If rslist(8) = "DD" Then

DataReport6.Sections("Section1").Controls("lbldd").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Visible = True

DataReport6.Sections("Section1").Controls("txtddno").Visible = True

DataReport6.Sections("Section1").Controls("txtdddate").Visible = True

DataReport6.Sections("Section1").Controls("lblvide").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "DD No."

DataReport6.Sections("Section1").Controls("lbldate").Visible = True

DataReport6.Sections("Section1").Controls("lbldot").Visible = True

DataReport6.Sections("Section1").Controls("Label7").Visible = True

ElseIf rslist(8) = "Cash" Then

DataReport6.Sections("Section1").Controls("lblcash").Visible = True

DataReport6.Sections("Section1").Controls("lbldd").Visible = False

DataReport6.Sections("Section1").Controls("lblchdd").Visible = False

DataReport6.Sections("Section1").Controls("txtddno").Visible = False

DataReport6.Sections("Section1").Controls("txtdddate").Visible = False

DataReport6.Sections("Section1").Controls("lblvide").Visible = False

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "DD No."

DataReport6.Sections("Section1").Controls("lbldate").Visible = False

DataReport6.Sections("Section1").Controls("lbldot").Visible = False

DataReport6.Sections("Section1").Controls("Line11").Visible = False

DataReport6.Sections("Section1").Controls("Line13").Visible = False

DataReport6.Sections("Section1").Controls("Line14").Visible = False
DataReport6.Sections("Section1").Controls("Label7").Visible = False

ElseIf rslist(8) = "Cheque" Then

DataReport6.Sections("Section1").Controls("lblch").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Visible = True

DataReport6.Sections("Section1").Controls("txtchno").Visible = True

DataReport6.Sections("Section1").Controls("txtchdate").Visible = True

DataReport6.Sections("Section1").Controls("lblvide").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "Cheq.No"

DataReport6.Sections("Section1").Controls("lbldate").Visible = True

DataReport6.Sections("Section1").Controls("lbldot").Visible = True

DataReport6.Sections("Section1").Controls("Label7").Visible = True

End If

rslist.MoveNext

Wend

Set DataReport6.DataSource = rslist

'DataReport6

DataReport6.Show

Exit Sub

End If

End Sub

Private Sub cmdSave_Click()

Dim rsfee As New ADODB.Recordset

If rsfee.State = adStateOpen Then

rsfee.Close

End If

rsfee.Open "Select * from tbl_Admission_Fee", con, adOpenStatic, adLockOptimistic

With rsfee

.AddNew

'********fetch from frmadmission form


.Fields(1).VALUE = frmAdmission.txtAppNo.Text

'.Fields(3).VALUE = frmAdmission.txtRollNo.Text

'.Fields(19).Value = name1

.Fields(18).VALUE = frmAdmission.txtcourse.Text

.Fields(19).VALUE = frmAdmission.txtsem.Text

.Fields(20).VALUE = frmAdmission.combsession.Text

'********fetch from frmadmission form end

.Fields(29) = "FR"

.Fields(30) = frmlogin.uid

.Fields(31) = Now()

.Fields(37) = frmAdmission.txtName.Text

If optuniv.VALUE = True Then

.Fields(2).VALUE = "University Fee"

ElseIf opttu.VALUE = True Then

.Fields(2).VALUE = "Tution Fee"

ElseIf optboth.VALUE = True Then

.Fields(2).VALUE = "UNF/TF"

End If

If chkfullpmt.VALUE = 1 Then

.Fields(12).VALUE = "Full Payment"

.Fields(13).VALUE = "----"

.Fields(0).VALUE = "FP"

ElseIf chkinstpmt.VALUE = 1 Then

.Fields(12).VALUE = "---"

If opt1inst.VALUE = True Then

.Fields(13).VALUE = "First Installment"

.Fields(0).VALUE = "INST1"

ElseIf opt2inst.VALUE = True Then

.Fields(13).VALUE = "Second Installment"

.Fields(0).VALUE = "INST2"

ElseIf opt3inst.VALUE = True Then


.Fields(13).VALUE = "Third Installment"

.Fields(0).VALUE = "INST3"

ElseIf opt4inst.VALUE = True Then

.Fields(13).VALUE = "Forth Installment"

.Fields(0).VALUE = "INST4"

ElseIf opt5inst.VALUE = True Then

.Fields(13).VALUE = "Fifth Installment"

.Fields(0).VALUE = "INST5"

ElseIf opt6inst.VALUE = True Then

.Fields(13).VALUE = "Six Installment"

.Fields(0).VALUE = "INST6"

End If

End If

' '****** for demand draft******

If SS.Caption = "Demand Draft" And optuniv.VALUE = True Then

If txtfavdd = "" Then

MsgBox "Mension to whom demand draft is favouring...."

txtfavdd.SetFocus

Exit Sub

ElseIf txtmrnodd = "" Then

MsgBox "Mension M.R.No."

txtmrnodd.SetFocus

Exit Sub

ElseIf dddate = "" Then

MsgBox "M.R date must be mensioned..."

dddate.SetFocus

Exit Sub

ElseIf txtddnum = "" Then

MsgBox "Demand draft number is missing...."

txtddnum.SetFocus
Exit Sub

ElseIf dddate = "" Then

MsgBox "Date of demand draft must be mension....."

dddate.SetFocus

Exit Sub

ElseIf txtbankcodedd = "" Then

MsgBox "Mension the bank code...."

txtbankcodedd.SetFocus

Exit Sub

ElseIf txtamountdd = "" And txtamountdd.Text = "0" Then

MsgBox "Amount must be mension...."

txtamountdd.SetFocus

Exit Sub

ElseIf txtbanknamedd = "" Then

MsgBox "Mension bank name....."

txtbanknamedd.SetFocus

Exit Sub

ElseIf txtLTFDD = "" Then

MsgBox "Mension lateral fee....."

txtLTFDD.SetFocus

Exit Sub

ElseIf txtLFDD = "" Then

MsgBox "Mension late fee....."

txtLFDD.SetFocus

Exit Sub

ElseIf txtbanknamedd = "" Then

MsgBox "Mension bank name....."

txtbanknamedd.SetFocus

Exit Sub

Else
.Fields(4).VALUE = txtfavdd.Text

.Fields(5).VALUE = txtmrnodd.Text

.Fields(6).VALUE = dtmrdatedd.VALUE

.Fields(7).VALUE = txtddnum.Text

.Fields(8).VALUE = dddate.VALUE

.Fields(9).VALUE = txtbankcodedd.Text

.Fields(10).VALUE = txtamountdd.Text

.Fields(11).VALUE = txtbanknamedd.Text

.Fields(14).VALUE = 0

'.Fields(15).VALUE = 0

' .Fields(16).VALUE = 0

'.Fields(17).VALUE = Date

.Fields(23).VALUE = "Demand Draft"

.Fields(24).VALUE = txtLTFDD.Text

.Fields(25).VALUE = txtLFDD.Text

.Fields(26).VALUE = txtTotalAmtDD.Text

.Update

'****************receipt

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_receipt", con, adOpenDynamic, adLockOptimistic

rs.AddNew

rs.Fields(1).VALUE = rsfee.Fields(5).VALUE

rs.Fields(2).VALUE = frmAdmission.txtAppNo.Text

rs.Fields(3).VALUE = frmAdmission.combsession.Text

rs.Fields(4).VALUE = UCase(NumberToString(frmAdmission.txtsem.Text))

rs.Fields(5).VALUE = frmAdmission.txtcourse.Text

rs.Fields(6).VALUE = Date
am = UCase(NumberToString(Val(txtTotalAmtDD.Text)) & " ONLY")

rs.Fields(10).VALUE = am

'Dim rs1 As New ADODB.Recordset

rs.Fields(7).VALUE = frmAdmission.txtName.Text

rs.Fields(8).VALUE = "DD"

rs.Fields(9).VALUE = rsfee.Fields(26).VALUE

rs.Fields(11).VALUE = rsfee.Fields(2).VALUE & " - " & rsfee.Fields(0).VALUE

rs.Fields(14).VALUE = rsfee.Fields(7).VALUE

rs.Fields(15).VALUE = rsfee.Fields(8).VALUE

rs.Fields(16).VALUE = rsfee.Fields(11).VALUE

rs.Fields(18).VALUE = frmAdmission.cmbSex.Text

'End With

rs.Update

End If

'End If

MsgBox "Your record has been successfully updated"

'End If

' '***** for cheque********

ElseIf SS.Caption = "Cheque" And (optuniv.VALUE = True Or opttu.VALUE = True) Then

If txtfavch = "" Then

MsgBox "Mension to whom cheque is favouring...."

txtfavch.SetFocus

Exit Sub

ElseIf txtmrnoch = "" Then

MsgBox "Mension M.R.No."

txtmrnoch.SetFocus

Exit Sub
ElseIf dtmrdatech = "" Then

MsgBox "M.R date must be mensioned..."

dtmrdatech.SetFocus

Exit Sub

ElseIf chequeno = "" Then

MsgBox "Cheque number is missing...."

chequeno.SetFocus

Exit Sub

ElseIf datech = "" Then

MsgBox "Date of Cheque issue must be mension....."

datech.SetFocus

Exit Sub

ElseIf txtamountch = "" Then

MsgBox "Amount must be mension...."

txtamountch.SetFocus

Exit Sub

ElseIf txtbankch = "" Then

MsgBox "Mension bank name....."

txtbankch.SetFocus

Exit Sub

ElseIf txtddcom = "" Then

MsgBox "Mension DDEX fee....."

txtddcom.SetFocus

Exit Sub

ElseIf txtLTFCH = "" Then

MsgBox "Mension lateral fee....."

txtLTFCH.SetFocus

Exit Sub

ElseIf txtLFCH = "" Then

MsgBox "Mension late fine....."

txtLFCH.SetFocus
Exit Sub

Else

.Fields(4).VALUE = txtfavch.Text

.Fields(5).VALUE = txtmrnoch.Text

.Fields(6).VALUE = dtmrdatech.VALUE

.Fields(7).VALUE = chequeno.Text

.Fields(8).VALUE = datech.VALUE

'.Fields(9).VALUE = 0

.Fields(10).VALUE = txtamountch.Text

.Fields(11).VALUE = txtbankch.Text

.Fields(14).VALUE = txtddcom.Text

'.Fields(15).VALUE = 0

'.Fields(16).VALUE = 0

'.Fields(17).VALUE = Date

'.Fields(21).VALUE = txtwaiverhead.Text

' .Fields(22).VALUE = txtwaiveramt.Text

.Fields(23).VALUE = "Cheque"

.Fields(24).VALUE = txtLTFCH.Text

.Fields(25).VALUE = txtLFCH.Text

.Fields(26).VALUE = TxtTotalAmtCH.Text

.Update

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_receipt", con, adOpenDynamic, adLockOptimistic

rs.AddNew

rs.Fields(1).VALUE = rsfee.Fields(5).VALUE

rs.Fields(2).VALUE = frmAdmission.txtAppNo.Text

rs.Fields(3).VALUE = frmAdmission.combsession.Text
rs.Fields(4).VALUE = frmAdmission.txtsem.Text

rs.Fields(5).VALUE = frmAdmission.txtcourse.Text

rs.Fields(6).VALUE = Date

'am = NumberToString(Val(txtTotalAmtDD.Text))

am = UCase(NumberToString(Val(TxtTotalAmtCH.Text)) & " ONLY")

rs.Fields(10).VALUE = am

'Dim rs1 As New ADODB.Recordset

rs.Fields(7).VALUE = frmAdmission.txtName.Text

rs.Fields(8).VALUE = "Cheque"

rs.Fields(9).VALUE = rsfee.Fields(26).VALUE

'rs.Fields(10).VALUE = ""

rs.Fields(11).VALUE = rsfee.Fields(2).VALUE & " - " & rsfee.Fields(0).VALUE

rs.Fields(12).VALUE = chequeno.Text 'rsfee.Fields(5).VALUE

rs.Fields(13).VALUE = datech.VALUE 'rsfee.Fields(6).VALUE

rs.Fields(16).VALUE = txtbankch.Text 'rsfee.Fields(11).VALUE

rs.Fields(18).VALUE = frmAdmission.cmbSex.Text

rs.Update

End If

'End If

MsgBox "Your record has been successfully updated"

' End If

' '*********cash************

ElseIf SS.Caption = "Cash" And (optuniv.VALUE = True Or opttu.VALUE = True) Then

If txtinfavcs = "" Then

MsgBox "Mension to whom cheque is favouring...."

txtinfavcs.SetFocus

Exit Sub

ElseIf txtmrnocs = "" Then


MsgBox "Mension M.R.No."

txtmrnocs.SetFocus

Exit Sub

ElseIf datecs = "" Then

MsgBox "M.R date must be mensioned..."

datecs.SetFocus

Exit Sub

ElseIf txtfamtcs = "" Then

MsgBox "Amount must be mension...."

txtfamtcs.SetFocus

Exit Sub

ElseIf txtddexcs = "" Then

MsgBox "Mension DDEX fee....."

txtddexcs.SetFocus

Exit Sub

ElseIf txtLTFCS = "" Then

MsgBox "Mension lateral fee....."

txtLTFCS.SetFocus

Exit Sub

ElseIf txtLFCS = "" Then

MsgBox "Mension late fine....."

txtLFCS.SetFocus

Exit Sub

Else

.Fields(4).VALUE = txtinfavcs.Text

.Fields(5).VALUE = txtmrnocs.Text

.Fields(6).VALUE = datecs.VALUE

'.Fields(7).VALUE = "----"

'.Fields(8).VALUE = Date

'.Fields(9).VALUE = 0
' .Fields(10).VALUE = 0

'.Fields(11).VALUE = 0

' .Fields(16).VALUE = 0

'.Fields(17).VALUE = Date

.Fields(14).VALUE = txtddexcs.Text

.Fields(15).VALUE = txtfamtcs.Text

' .Fields(21).VALUE = txtwaiverhead.Text

'.Fields(22).VALUE = txtwaiveramt.Text

.Fields(23).VALUE = "Cash"

.Fields(24).VALUE = txtLTFCS.Text

.Fields(25).VALUE = txtLFCS.Text

.Fields(26).VALUE = txtTotalAmtCS.Text

.Update

'***********************

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_receipt", con, adOpenDynamic, adLockOptimistic

rs.AddNew

rs.Fields(1).VALUE = rsfee.Fields(5).VALUE

rs.Fields(2).VALUE = frmAdmission.txtAppNo.Text

rs.Fields(3).VALUE = frmAdmission.combsession.Text

rs.Fields(4).VALUE = frmAdmission.txtsem.Text

rs.Fields(5).VALUE = frmAdmission.txtcourse.Text

rs.Fields(6).VALUE = Date

'am = (NumberToString(Val(txtTotalAmtCS.Text)) & " ONLY")

'am = UCase(NumberToString(Val(txtTotalAmtCS.Text)) & " ONLY")

am = UCase(NumberToString(Val(txtTotalAmtCS.Text)) & " ONLY")

rs.Fields(10).VALUE = am

'Dim rs1 As New ADODB.Recordset

rs.Fields(7).VALUE = frmAdmission.txtName.Text
rs.Fields(8).VALUE = "Cash"

rs.Fields(9).VALUE = rsfee.Fields(26).VALUE

'rs.Fields(10).VALUE = ""

rs.Fields(11).VALUE = rsfee.Fields(2).VALUE & " - " & rsfee.Fields(0).VALUE

rs.Fields(18).VALUE = frmAdmission.cmbSex.Text

rs.Update

MsgBox "Your record has been successfully updated"

' End If

End If

End If

End With

'Command2.Enabled = False

'Command1_Click

'cmdsave.Enabled = False

End Sub

Private Sub cmdsaveboth_Click()

Dim rsfee As New ADODB.Recordset

If rsfee.State = adStateOpen Then

rsfee.Close

End If

rsfee.Open "Select * from tbl_Admission_Fee", con, adOpenStatic, adLockPessimistic

With rsfee

If optboth.VALUE = True Then

'***************For Cash Entry*****************************

If ss1.Caption = "Cash" Then

For i = 0 To 1

.AddNew

'********fetch from frmadmission form

.Fields(1).VALUE = frmAdmission.txtAppNo.Text

'.Fields(3).VALUE = frmAdmission.txtRollNo.Text

'.Fields(19).Value = name1
.Fields(18).VALUE = frmAdmission.txtcourse.Text

.Fields(19).VALUE = frmAdmission.txtsem.Text

.Fields(20).VALUE = frmAdmission.combsession.Text

'********fetch from frmadmission form end

If optuniv.VALUE = True Then

.Fields(2).VALUE = "University Fee"

ElseIf opttu.VALUE = True Then

.Fields(2).VALUE = "Tution Fee"

ElseIf optboth.VALUE = True Then

'.Fields(2).VALUE = "UNF/TF"

End If

.Fields(2).VALUE = LBLUN(i).Caption

If chkfullpmt.VALUE = 1 Then

.Fields(12).VALUE = "Full Payment"

.Fields(13).VALUE = "----"

.Fields(0).VALUE = "FP"

ElseIf chkinstpmt.VALUE = 1 Then

.Fields(12).VALUE = "---"

If opt1inst.VALUE = True Then

.Fields(13).VALUE = "First Installment"

.Fields(0).VALUE = "INST1"

ElseIf opt2inst.VALUE = True Then

.Fields(13).VALUE = "Second Installment"

.Fields(0).VALUE = "INST2"

ElseIf opt3inst.VALUE = True Then

.Fields(13).VALUE = "Third Installment"

.Fields(0).VALUE = "INST3"

ElseIf opt4inst.VALUE = True Then

.Fields(13).VALUE = "Forth Installment"

.Fields(0).VALUE = "INST4"

ElseIf opt5inst.VALUE = True Then


.Fields(13).VALUE = "Fifth Installment"

.Fields(0).VALUE = "INST5"

ElseIf opt6inst.VALUE = True Then

.Fields(13).VALUE = "Six Installment"

.Fields(0).VALUE = "INST6"

End If

End If

' If cmdwaiver.Enabled = True Then

' If txtwaiverhead.Text <> "" And txtwaiveramt.Text <> "" Then

' .Fields(21).VALUE = txtwaiverhead.Text

' .Fields(22).VALUE = txtwaiveramt.Text

' Else

' .Fields(21).VALUE = 0

' .Fields(22).VALUE = 0

' End If

' End If

'txttotamtbtcs(i).Text

'txttotalamtbtcs(i).Text

.Fields(4).VALUE = txtinfbtcs(i).Visible

.Fields(5).VALUE = txmrnobtcs(i).Text

.Fields(6).VALUE = dtmrdatebtca(i).VALUE

.Fields(7).VALUE = "----"

.Fields(8).VALUE = Date

.Fields(9).VALUE = 0

.Fields(10).VALUE = 0

.Fields(11).VALUE = 0

.Fields(16).VALUE = 0
.Fields(17).VALUE = Date

.Fields(14).VALUE = txtddexbtcs(i).Text

.Fields(15).VALUE = txtfeeamtbtcs(i).Text

' .Fields(21).VALUE = txtwaiverhead.Text

'.Fields(22).VALUE = txtwaiveramt.Text

.Fields(23).VALUE = "Cash"

.Fields(24).VALUE = txtLTFcsbt(i).Text

.Fields(25).VALUE = txtLFcsbt(i).Text

.Fields(26).VALUE = txttotalamtcsBT.Text

.Update

MsgBox "record update"

Next

End If

'***************For Cheque Entry*****************************

If ss1.Caption = "Cheque" Then

For ii = 0 To 1

.AddNew

'********fetch from frmadmission form

.Fields(1).VALUE = frmAdmission.txtAppNo.Text

'.Fields(3).VALUE = frmAdmission.txtRollNo.Text

'.Fields(19).Value = name1

.Fields(18).VALUE = frmAdmission.txtcourse.Text

.Fields(19).VALUE = frmAdmission.txtsem.Text

.Fields(20).VALUE = frmAdmission.combsession.Text

'********fetch from frmadmission form end

If optuniv.VALUE = True Then

.Fields(2).VALUE = "University Fee"

ElseIf opttu.VALUE = True Then

.Fields(2).VALUE = "Tution Fee"


ElseIf optboth.VALUE = True Then

'.Fields(2).VALUE = "UNF/TF"

End If

.Fields(2).VALUE = lblchk(ii).Caption

If chkfullpmt.VALUE = 1 Then

.Fields(12).VALUE = "Full Payment"

.Fields(13).VALUE = "----"

.Fields(0).VALUE = "FP"

ElseIf chkinstpmt.VALUE = 1 Then

.Fields(12).VALUE = "---"

If opt1inst.VALUE = True Then

.Fields(13).VALUE = "First Installment"

.Fields(0).VALUE = "INST1"

ElseIf opt2inst.VALUE = True Then

.Fields(13).VALUE = "Second Installment"

.Fields(0).VALUE = "INST2"

ElseIf opt3inst.VALUE = True Then

.Fields(13).VALUE = "Third Installment"

.Fields(0).VALUE = "INST3"

ElseIf opt4inst.VALUE = True Then

.Fields(13).VALUE = "Forth Installment"

.Fields(0).VALUE = "INST4"

ElseIf opt5inst.VALUE = True Then

.Fields(13).VALUE = "Fifth Installment"

.Fields(0).VALUE = "INST5"

ElseIf opt6inst.VALUE = True Then

.Fields(13).VALUE = "Six Installment"

.Fields(0).VALUE = "INST6"

End If

End If
' If cmdwaiver.Enabled = True Then

' If txtwaiverhead.Text <> "" And txtwaiveramt.Text <> "" Then

' .Fields(21).VALUE = txtwaiverhead.Text

' .Fields(22).VALUE = txtwaiveramt.Text

' Else

' .Fields(21).VALUE = 0

' .Fields(22).VALUE = 0

' End If

' End If

'txttotamtbtcs(i).Text

'txttotalamtbtcs(i).Text

.Fields(4).VALUE = txtinfbt(ii).Visible

.Fields(5).VALUE = txtmrnobt(ii).Text

.Fields(6).VALUE = mrdatebt(ii).VALUE

.Fields(7).VALUE = txtchnobt(ii).Text

.Fields(8).VALUE = chdatebt(ii).VALUE

.Fields(9).VALUE = 0

.Fields(10).VALUE = txtfeeamtbt(ii).Text

.Fields(11).VALUE = txtbnbt(ii).Text

.Fields(16).VALUE = 0

.Fields(17).VALUE = Date

.Fields(14).VALUE = txtddexbt(ii).Text

.Fields(15).VALUE = 0

.Fields(23).VALUE = "Cheque"

.Fields(24).VALUE = txtLTFchbt(ii).Text

.Fields(25).VALUE = txtLFchbt(ii).Text

.Fields(26).VALUE = txttotalamtchbt.Text

.Update

MsgBox "record update"

Next

End If
'********************For DD Entry***************************

If ss1.Caption = "Demand Draft" Then

For iii = 0 To 1

.AddNew

'********fetch from frmadmission form

.Fields(1).VALUE = frmAdmission.txtAppNo.Text

'.Fields(3).VALUE = frmAdmission.txtRollNo.Text

'.Fields(19).Value = name1

.Fields(18).VALUE = frmAdmission.txtcourse.Text

.Fields(19).VALUE = frmAdmission.txtsem.Text

.Fields(20).VALUE = frmAdmission.combsession.Text

'********fetch from frmadmission form end

If optuniv.VALUE = True Then

.Fields(2).VALUE = "University Fee"

ElseIf opttu.VALUE = True Then

.Fields(2).VALUE = "Tution Fee"

ElseIf optboth.VALUE = True Then

'.Fields(2).VALUE = "UNF/TF"

End If

.Fields(2).VALUE = lblchk(iii).Caption

If chkfullpmt.VALUE = 1 Then

.Fields(12).VALUE = "Full Payment"

.Fields(13).VALUE = "----"

.Fields(0).VALUE = "FP"

ElseIf chkinstpmt.VALUE = 1 Then

.Fields(12).VALUE = "---"

If opt1inst.VALUE = True Then

.Fields(13).VALUE = "First Installment"

.Fields(0).VALUE = "INST1"

ElseIf opt2inst.VALUE = True Then

.Fields(13).VALUE = "Second Installment"


.Fields(0).VALUE = "INST2"

ElseIf opt3inst.VALUE = True Then

.Fields(13).VALUE = "Third Installment"

.Fields(0).VALUE = "INST3"

ElseIf opt4inst.VALUE = True Then

.Fields(13).VALUE = "Forth Installment"

.Fields(0).VALUE = "INST4"

ElseIf opt5inst.VALUE = True Then

.Fields(13).VALUE = "Fifth Installment"

.Fields(0).VALUE = "INST5"

ElseIf opt6inst.VALUE = True Then

.Fields(13).VALUE = "Six Installment"

.Fields(0).VALUE = "INST6"

End If

End If

' If cmdwaiver.Enabled = True Then

' If txtwaiverhead.Text <> "" And txtwaiveramt.Text <> "" Then

' .Fields(21).VALUE = txtwaiverhead.Text

' .Fields(22).VALUE = txtwaiveramt.Text

' Else

' .Fields(21).VALUE = 0

' .Fields(22).VALUE = 0

' End If

' End If

'txttotamtbtcs(i).Text

'txttotalamtbtcs(i).Text

.Fields(4).VALUE = txtinbt(iii).Visible

.Fields(5).VALUE = txtddmr(iii).Text

.Fields(6).VALUE = mrdatebtdd(iii).VALUE

.Fields(7).VALUE = txtddnobt(iii).Text
.Fields(8).VALUE = dddatebt(iii).VALUE

.Fields(9).VALUE = txtbcodebt(iii).Text

.Fields(10).VALUE = txtddamtbt(iii).Text

.Fields(11).VALUE = txtbnmbt(iii).Text

.Fields(16).VALUE = 0

.Fields(17).VALUE = Date

.Fields(14).VALUE = txtddexbt(iii).Text

.Fields(15).VALUE = 0

.Fields(23).VALUE = "Demand Draft"

.Fields(24).VALUE = txtLTFBTDD(iii).Text

.Fields(25).VALUE = txtLFBTDD(iii).Text

.Fields(26).VALUE = txttotalamtddbt.Text

.Update

MsgBox "record update"

Next

End If

End If

End With

End Sub

Private Sub cmdtomf_Click()

'frmAdmission.Show

'Me.Hide

s = NumberToString(Val(txtTotalAmtDD.Text))

MsgBox (s)

End Sub

'Private Sub cmdwaiver_Click()

'Frame12.Visible = False
'End Sub

Private Sub Command1_Click()

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_receipt order by rec_mr_no", con, adOpenDynamic,


adLockOptimistic

If Option1.VALUE = True Then

rs.MoveLast

txtmrnodd.Text = Val((rs.Fields("rec_mr_no").VALUE)) + 1

Frame25.Visible = False

Else

Frame25.Visible = False

End If

End Sub

Private Sub Command2_Click()

'**************Date wise**************************

If txtmrnodd.Text = "" Then

Frame25.Visible = True

Exit Sub

End If

If rslist.State = adStateOpen Then

rslist.Close

End If

rslist.Open "SELECT * from tbl_receipt where rec_mr_no='" & Trim(txtmrnodd.Text) & "'",
con, adOpenDynamic, adLockOptimistic

If rslist.BOF And rslist.EOF Then

MsgBox ("record not found")

Exit Sub

'rslist.MoveFirst
Else

While rslist.EOF = False

If rslist(18) = "M-Male" Then

DataReport6.Sections("Section1").Controls("lblmr").Caption = "MR."

Else

DataReport6.Sections("Section1").Controls("lblmr").Caption = "MS."

End If

If rslist(8) = "DD" Then

DataReport6.Sections("Section1").Controls("lbldd").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Visible = True

DataReport6.Sections("Section1").Controls("txtddno").Visible = True

DataReport6.Sections("Section1").Controls("txtdddate").Visible = True

DataReport6.Sections("Section1").Controls("lblvide").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "DD No."

DataReport6.Sections("Section1").Controls("lbldate").Visible = True

DataReport6.Sections("Section1").Controls("lbldot").Visible = True

DataReport6.Sections("Section1").Controls("Label7").Visible = True

ElseIf rslist(8) = "Cash" Then

DataReport6.Sections("Section1").Controls("lblcash").Visible = True

DataReport6.Sections("Section1").Controls("lbldd").Visible = False

DataReport6.Sections("Section1").Controls("lblchdd").Visible = False

DataReport6.Sections("Section1").Controls("txtddno").Visible = False

DataReport6.Sections("Section1").Controls("txtdddate").Visible = False

DataReport6.Sections("Section1").Controls("lblvide").Visible = False

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "DD No."

DataReport6.Sections("Section1").Controls("lbldate").Visible = False

DataReport6.Sections("Section1").Controls("lbldot").Visible = False

DataReport6.Sections("Section1").Controls("Line11").Visible = False

DataReport6.Sections("Section1").Controls("Line13").Visible = False

DataReport6.Sections("Section1").Controls("Line14").Visible = False
DataReport6.Sections("Section1").Controls("Label7").Visible = False

ElseIf rslist(8) = "Cheque" Then

DataReport6.Sections("Section1").Controls("lblch").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Visible = True

DataReport6.Sections("Section1").Controls("txtchno").Visible = True

DataReport6.Sections("Section1").Controls("txtchdate").Visible = True

DataReport6.Sections("Section1").Controls("lblvide").Visible = True

DataReport6.Sections("Section1").Controls("lblchdd").Caption = "Cheq.No"

DataReport6.Sections("Section1").Controls("lbldate").Visible = True

DataReport6.Sections("Section1").Controls("lbldot").Visible = True

DataReport6.Sections("Section1").Controls("Label7").Visible = True

End If

rslist.MoveNext

Wend

Set DataReport6.DataSource = rslist

'DataReport6

DataReport6.Show

Exit Sub

End If

End Sub

Private Sub Form_Load()

opttu.VALUE = False

optuniv.VALUE = False

optboth.VALUE = False

datecs.VALUE = Date

dtmrdatech.VALUE = Date

datech.VALUE = Date

dtmrdatedd.VALUE = Date

dddate.VALUE = Date
If frmAdmission.txtAppNo.Text = "" Then

MsgBox ("First you select Application Number")

Me.Hide

frmAdmission.Show

framepayment.Enabled = False

'Exit Sub

End If

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

' mrat = "Select max(VAL(Adf_Mrno)) from tbl_admission_fee"

' If rsmr.State = adStateOpen Then

' rsmr.Close

' End If

' rsmr.Open mrat, con, adOpenDynamic, adLockOptimistic

' If rsmr.EOF And rsmr.BOF Then

' MsgBox ("No Record")

' End If

' mr = rsmr(0).VALUE + 1

' If SS.Caption = "Demand Draft" Then

' txtmrnodd.Text = mr

' ElseIf SS.Caption = "Cheque" Then

' txtmrnoch.Text = mr

' ElseIf SS.Caption = "Cash" Then

' txtmrnocs.Text = mr

' End If

'Call mrupdate

'cmdsave.Enabled = False

'cmdwaiver.Enabled = True
If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_receipt", con, adOpenDynamic, adLockOptimistic

'cmdsaveboth.Enabled = False

If frmAdmission.txtAppNo.Text = "" Then

Exit Sub

Else

'Call list

Call feedetails

End If

End Sub

Sub mrupdate()

mrat = "Select max(VAL(MRNO)) from tbl_MaxMrno"

If rsmr.State = adStateOpen Then

rsmr.Close

End If

rsmr.Open mrat, con, adOpenDynamic, adLockOptimistic

If rsmr.EOF And rsmr.BOF Then

MsgBox ("No Record")

End If

mr = rsmr(0).VALUE + 1

If SS.Caption = "Demand Draft" Then

txtmrnodd.Text = mr

ElseIf SS.Caption = "Cheque" Then

txtmrnoch.Text = mr

ElseIf SS.Caption = "Cash" Then

txtmrnocs.Text = mr

End If
End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

End Sub

Private Sub optboth_Click()

If optboth.VALUE = True Then

ss1.Visible = True

SS.Visible = False

cmdsaveboth.Visible = True

cmdsave.Visible = False

End If

End Sub

Private Sub opttu_Click()

If opttu.VALUE = True Then

ss1.Visible = False

SS.Visible = True

cmdsaveboth.Visible = False

cmdsave.Visible = True

End If

End Sub

Private Sub optuniv_Click()

If optuniv.VALUE = True Then

ss1.Visible = False

SS.Visible = True

cmdsaveboth.Visible = False

cmdsave.Visible = True

End If
End Sub

'Public Sub list()

'Dim rslis As New ADODB.Recordset

'listdetails.ListItems.clear

'j = 1

'Dim str As String

'str = "SELECT * FROM tbl_Admission_Fee where Std_appno='" & frmAdmission.txtappno.Text &


"'"

'If rslis.State = adStateOpen Then

'rslis.Close

'End If

'rslis.Open str, con, adOpenDynamic, adLockOptimistic

'If rslis.BOF And rslis.EOF Then

'ToolTipText = "no record"

'MsgBox "no record in the database"

'Else

'End If

'If rslis.BOF = False Then rslis.MoveFirst

'While Not rslis.EOF

'With rslis

'If Not (.Fields(1)) = "" Then

'listdetails.ListItems.Add(j) = .Fields(1).VALUE

'End If

'If Not (.Fields(3)) = "" Then

'listdetails.ListItems(j).SubItems(1) = .Fields(3).VALUE

'End If

'If Not (.Fields(2)) = "" Then

'listdetails.ListItems(j).SubItems(2) = frmAdmission.TXTNAME.Text

'End If

'If Not (.Fields(0)) = "" Then

'listdetails.ListItems(j).SubItems(3) = .Fields(0).VALUE
'End If

'If Not (.Fields(5)) = "" Then

'listdetails.ListItems(j).SubItems(4) = .Fields(5).VALUE

'End If

'If Not (.Fields(6)) = "" Then

'listdetails.ListItems(j).SubItems(5) = .Fields(6).VALUE

'End If

'If Not (.Fields(18)) = "" Then

'listdetails.ListItems(j).SubItems(6) = .Fields(18).VALUE

'End If

'If Not (.Fields(19)) = "" Then

'listdetails.ListItems(j).SubItems(7) = .Fields(19).VALUE

'End If

'If Not (.Fields(10)) = "" Then

'listdetails.ListItems(j).SubItems(8) = .Fields(10).VALUE

'End If

'If Not (.Fields(15)) = "" Then

'listdetails.ListItems(j).SubItems(9) = .Fields(15).VALUE

'End If

'If Not (.Fields(2)) = "" Then

'listdetails.ListItems(j).SubItems(10) = .Fields(2).VALUE

'End If

'If Not (.Fields(23)) = "" Then

'listdetails.ListItems(j).SubItems(11) = .Fields(23).VALUE

'End If

'j = j + 1

'rslis.MOVENEXT

'End With

'Wend

'End Sub

Sub feedetails()
lst2.ListItems.clear

Dim rsfd As New ADODB.Recordset

If rsfd.State = adStateOpen Then

rsfd.Close

End If

disp = "SELECT tbl_Admission_Fee.Std_rollno, tbl_Admission_Fee.Std_appno,


tbl_Admission_Fee.Adf_session, tbl_Admission_Fee.Crs_course, tbl_Admission_Fee.Sem,
tbl_Admission_Fee.Adf_FeeType, tbl_Admission_Fee.Adf_type, tbl_Admission_Fee.Adf_mrno,
tbl_Admission_Fee.Adf_mrdate, tbl_Admission_Fee.Adf_dd_ch_no,
tbl_Admission_Fee.Adf_dd_ch_date, tbl_Admission_Fee.Adf_dd_ch_totamount,
tbl_Admission_Fee.Adf_dd_ch_bankname, tbl_Admission_Fee.Adf_ddex,
tbl_Admission_Fee.Adf_feeincash, tbl_Admission_Fee.Adf_LateralFeeAmt,
tbl_Admission_Fee.Adf_LateFineAmt, tbl_Admission_Fee.Adf_DepOn,
tbl_Admission_Fee.Adf_TotalFeeAmt From tbl_Admission_Fee WHERE Std_appno='" &
frmAdmission.txtAppNo.Text & "' order by tbl_Admission_Fee.Sem"

rsfd.Open disp, con, adOpenDynamic, adLockOptimistic

j = 1

While Not rsfd.EOF

lst2.ListItems.Add(j) = j

If rsfd(2) <> "" Then

lst2.ListItems(j).SubItems(1) = rsfd(2)

End If

If rsfd(3) <> "" Then

lst2.ListItems(j).SubItems(2) = rsfd(3)

End If

If rsfd(4) <> "" Then

lst2.ListItems(j).SubItems(3) = rsfd(4)

End If

If rsfd(5) <> "" Then

lst2.ListItems(j).SubItems(4) = rsfd(5)

End If

If rsfd(6) <> "" Then

lst2.ListItems(j).SubItems(5) = rsfd(6)

End If

If rsfd(7) <> "" Then


lst2.ListItems(j).SubItems(6) = rsfd(7)

End If

If rsfd(8) <> "" Then

lst2.ListItems(j).SubItems(7) = rsfd(8)

End If

If rsfd(9) <> "" Then

lst2.ListItems(j).SubItems(8) = rsfd(9)

End If

If rsfd(10) <> "" Then

lst2.ListItems(j).SubItems(9) = rsfd(10)

End If

If rsfd(11) <> "" Then

lst2.ListItems(j).SubItems(10) = rsfd(11)

End If

If rsfd(12) <> "" Then

lst2.ListItems(j).SubItems(11) = rsfd(12)

End If

If rsfd(13) <> "" Then

lst2.ListItems(j).SubItems(12) = rsfd(13)

End If

If rsfd(14) <> "" Then

lst2.ListItems(j).SubItems(13) = rsfd(14)

End If

If rsfd(15) <> "" Then

lst2.ListItems(j).SubItems(14) = rsfd(15)

End If

If rsfd(16) <> "" Then

lst2.ListItems(j).SubItems(15) = rsfd(16)

End If

If rsfd(17) <> "" Then

lst2.ListItems(j).SubItems(16) = rsfd(18)
End If

If rsfd(18) <> "" Then

lst2.ListItems(j).SubItems(17) = rsfd(17)

End If

j = j + 1

rsfd.MoveNext

Wend

End Sub

Private Sub SS_Click(PreviousTab As Integer)

'mrat = "Select max(VAL(Adf_Mrno)) from tbl_admission_fee"

' If rsmr.State = adStateOpen Then

' rsmr.Close

' End If

' rsmr.Open mrat, con, adOpenDynamic, adLockOptimistic

' If rsmr.EOF And rsmr.BOF Then

' MsgBox ("No Record")

' End If

' mr = rsmr(0).VALUE + 1

If SS.Caption = "Demand Draft" Then

txtmrnodd.Text = mr

ElseIf SS.Caption = "Cheque" Then

txtmrnoch.Text = mr

ElseIf SS.Caption = "Cash" Then

txtmrnocs.Text = mr

End If

End Sub

Private Sub txtamountch_LostFocus()

txtsubTotalCH.Text = Val(txtamountch.Text)
TxtTotalAmtCH.Text = Val(txtamountch.Text)

End Sub

Private Sub txtamountdd_LostFocus()

txtTotalAmtDD.Text = Val(txtamountdd.Text)

txtsubtotaldd.Text = Val(txtamountdd.Text)

End Sub

Private Sub txtddcom_LostFocus()

txtsubTotalCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text)

TxtTotalAmtCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text)

End Sub

Private Sub txtddexcs_LostFocus()

txtsubtotalcs.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text)

txtTotalAmtCS.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text)

End Sub

Private Sub txtfamtcs_Change()

txtsubtotalcs.Text = Val(txtfamtcs.Text)

txtTotalAmtCS.Text = Val(txtfamtcs.Text)

End Sub

Private Sub txtLFCH_LostFocus()

txtsubTotalCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text) + Val(txtLTFCH.Text) +


Val(txtLFCH.Text)

TxtTotalAmtCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text) + Val(txtLTFCH.Text) +


Val(txtLFCH.Text)

End Sub

Private Sub txtLFCS_LostFocus()

txtsubtotalcs.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text) + Val(txtLTFCS.Text) +


Val(txtLFCS.Text)
txtTotalAmtCS.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text) + Val(txtLTFCS.Text) +
Val(txtLFCS.Text)

End Sub

Private Sub txtLFDD_LostFocus()

txtTotalAmtDD.Text = Val(txtamountdd.Text) + Val(txtLTFDD.Text) + Val(txtLFDD.Text)

txtsubtotaldd.Text = Val(txtamountdd.Text) + Val(txtLTFDD.Text) + Val(txtLFDD.Text)

End Sub

Private Sub txtLTFCH_LostFocus()

txtsubTotalCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text) + Val(txtLTFCH.Text)

TxtTotalAmtCH.Text = Val(txtamountch.Text) + Val(txtddcom.Text) + Val(txtLTFCH.Text)

End Sub

Private Sub txtLTFCS_LostFocus()

txtsubtotalcs.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text) + Val(txtLTFCS.Text)

txtTotalAmtCS.Text = Val(txtfamtcs.Text) + Val(txtddexcs.Text) + Val(txtLTFCS.Text)

End Sub

Private Sub txtLTFDD_LostFocus()

txtTotalAmtDD.Text = Val(txtamountdd.Text) + Val(txtLTFDD.Text)

txtsubtotaldd.Text = Val(txtamountdd.Text) + Val(txtLTFDD.Text)

End Sub

Sub wordfun()

s = NumberToString(txtTotalAmtDD.Text)

s = "(" + s + " only)"

MsgBox (s)

End Sub

Private Sub txtmrnoch_Lostfocus()

If txtmrnoch.Text = "" Then

MsgBox "First you enter MRNo."

txtmrnoch.SetFocus
Else

Dim mrch As New ADODB.Recordset

If mrch.State = adStateOpen Then

mrch.Close

End If

mrch.Open "Select Adf_mrno from tbl_Admission_Fee where Adf_mrno='" & txtmrnoch.Text &
"'", con, adOpenDynamic, adLockOptimistic

'While mrch.EOF = False

If mrch.EOF And mrch.BOF Then

Exit Sub

End If

If mrch(0).VALUE = txtmrnoch.Text Then

MsgBox ("MRNo. already exist")

'txtmrnodd.Text = ""

txtmrnoch.Text = ""

txtmrnoch.SetFocus

End If

'mrch.MOVENEXT

'Wend

End If

End Sub

Private Sub txtmrnoch_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As


Single)

If optuniv.VALUE = False And opttu.VALUE = False Then

MsgBox ("Select payment mode")

ElseIf chkfullpmt.VALUE = 0 And chkinstpmt.VALUE = 0 Then

MsgBox ("Select fullpayment or installment")

End If
End Sub

Private Sub txtmrnocs_LostFocus()

'If txtmrnocs.Text = "" Then

'MsgBox ("First yooou enter mrno")

'txtmrnocs.SetFocus

'Else

'Dim mrch As New ADODB.Recordset

'If mrch.State = adStateOpen Then

' mrch.Close

'End If

'mrch.Open "Select Adf_mrno from tbl_Admission_Fee where Adf_mrno='" & txtmrnocs.Text &
"'", con, adOpenDynamic, adLockOptimistic

''While mrch.EOF = False

'If mrch.EOF And mrch.BOF Then

'Exit Sub

'End If

'If mrch(0).VALUE = txtmrnocs.Text Then

'MsgBox ("MRNo. already exist")

''txtmrnoch.Text = ""

'txtmrnocs.Text = ""

'txtmrnocs.SetFocus

'End If

''mrch.MOVENEXT

''Wend

'End If

End Sub

Private Sub txtmrnocs_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As


Single)

If optuniv.VALUE = False And opttu.VALUE = False Then

MsgBox ("Select payment mode")

ElseIf chkfullpmt.VALUE = 0 And chkinstpmt.VALUE = 0 Then


MsgBox ("Select fullpayment or installment")

End If

End Sub

Private Sub txtmrnodd_LostFocus()

If txtmrnodd.Text = "" Then

MsgBox "First you enter MRNo."

txtmrnodd.SetFocus

Else

Dim mrch As New ADODB.Recordset

If mrch.State = adStateOpen Then

mrch.Close

End If

mrch.Open "Select Adf_mrno from tbl_Admission_Fee where Adf_mrno='" & txtmrnodd.Text &
"'", con, adOpenDynamic, adLockOptimistic

'While mrch.EOF = False

If mrch.EOF And mrch.BOF Then

Else

If Trim(mrch(0).VALUE) = Trim(txtmrnodd.Text) Then

MsgBox ("MRNo. already exist")

txtmrnodd.Text = ""

txtmrnodd.SetFocus

'txtmrnocs.Text = ""

End If

End If

'mrch.MOVENEXT

'Wend

End If

End Sub

Private Sub txtmrnodd_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As


Single)

If optuniv.VALUE = False And opttu.VALUE = False Then

MsgBox ("Select payment mode")


ElseIf chkfullpmt.VALUE = 0 And chkinstpmt.VALUE = 0 Then

MsgBox ("Select fullpayment or installment")

End If

End Sub

Campus Entry Form

Source Code
Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim ar As New ADODB.Recordset

Dim rs1 As New ADODB.Recordset

Dim cmp As New ADODB.Recordset

Dim mln, frmname, str, ctr, ctr1

Private Sub cmdadd_Click()

Call clear

If cmdadd.Caption = "Add" Then

cmdadd.Caption = "Cancel"
Call Enable

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company", con, adOpenDynamic, adLockOptimistic

If rs.BOF And rs.EOF Then

Dim dt

dt = Date

txtcompus_no.Text = Right(dt, 2)

txtcompus_no.Text = txtcompus_no.Text & "00" & 1

'str = txtcompus_no.Text

'txtcompus_no.Text = str

frmCampus_form.txtcid.Text = "C" & "00" & 1

Exit Sub

Else

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company order by comps_auto_no", con, adOpenDynamic, adLockOptimistic

rs.MoveLast

str = Val((rs.Fields("comps_auto_no").VALUE)) + 1

txtcompus_no.Text = str

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company order by Company_id", con, adOpenDynamic, adLockOptimistic

rs.MoveLast

If Mid((rs.Fields("Company_id").VALUE), 2) < 9 Then

frmCampus_form.txtcid.Text = "C" & "00" & Mid((rs.Fields("Company_id").VALUE), 2) + 1

ElseIf Mid((rs.Fields("Company_id").VALUE), 2) >= 9 Then

frmCampus_form.txtcid.Text = "C" & "0" & Mid((rs.Fields("Company_id").VALUE), 2) + 1

ElseIf Mid((rs.Fields("Company_id").VALUE), 2) > 99 Then

frmCampus_form.txtcid.Text = "C" & Mid((rs.Fields("Company_id").VALUE), 2) + 1

ElseIf Mid((rs.Fields("Company_id").VALUE), 2) > 999 Then

frmCampus_form.txtcid.Text = "C" & Mid((rs.Fields("Company_id").VALUE), 2) + 1


End If

lst1.ListItems.clear

End If

Else

cmdadd.Caption = "Add"

Call clear

Call disable

End If

End Sub

Private Sub cmdmod_Click()

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company where trim(comps_auto_no)='" & Trim(txtcompus_no.Text) & "'",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

Call updt

Call disable

End Sub

Private Sub cmdSave_Click()

Call save

Call cplist

End Sub

Private Sub Form_Load()

Set con = New ADODB.Connection

Set rs = New ADODB.Recordset

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

str = 0

dtpdate.VALUE = Date

lst1.ListItems.clear

Call cplist

Call disable

End Sub

Public Sub clear()


txtcid.Text = ""

txtcompus_no.Text = ""

txtcomp_name.Text = ""

txtcpos1.Text = ""

txtcpos2.Text = ""

txtcposno1.Text = ""

txtcposno2.Text = ""

txtpos1.Text = ""

txtpos2.Text = ""

txtpos3.Text = ""

txter1.Text = ""

txter2.Text = ""

txter3.Text = ""

txter4.Text = ""

txter5.Text = ""

txter6.Text = ""

txter1a.Text = ""

txter1b.Text = ""

txter1c.Text = ""

txter1d.Text = ""

txter1e.Text = ""

txter1f.Text = ""

txter1aa.Text = ""

txter1bb.Text = ""

txter1cc.Text = ""

txter1dd.Text = ""

txter1ee.Text = ""

txter1ff.Text = ""

comstatus.Text = ""

End Sub

Private Sub lst1_Click()

If lst1.ListItems.count = 0 Then

Exit Sub

End If
txtcid.Text = lst1.SelectedItem.Text

txtcomp_name.Text = lst1.SelectedItem.SubItems(1)

End Sub

Private Sub lst2_Click()

Call Enable

txtcompus_no.Text = LST2.SelectedItem.Text

txtcid.Text = LST2.SelectedItem.SubItems(1)

txtcomp_name.Text = LST2.SelectedItem.SubItems(2)

dtpdate.VALUE = LST2.SelectedItem.ListSubItems(3)

txtcpos1.Text = LST2.SelectedItem.SubItems(4)

txtcpos2.Text = LST2.SelectedItem.SubItems(5)

txtcposno1.Text = LST2.SelectedItem.SubItems(6)

txtcposno1.Text = LST2.SelectedItem.SubItems(7)

txtpos1.Text = LST2.SelectedItem.SubItems(8)

txter1.Text = LST2.SelectedItem.SubItems(9)

txter2.Text = LST2.SelectedItem.SubItems(10)

txter3.Text = LST2.SelectedItem.SubItems(11)

txter4.Text = LST2.SelectedItem.SubItems(12)

txter5.Text = LST2.SelectedItem.SubItems(13)

txter6.Text = LST2.SelectedItem.SubItems(14)

txtpos2.Text = LST2.SelectedItem.SubItems(15)

txter1a.Text = LST2.SelectedItem.SubItems(16)

txter1b.Text = LST2.SelectedItem.SubItems(17)

txter1c.Text = LST2.SelectedItem.SubItems(18)

txter1d.Text = LST2.SelectedItem.SubItems(19)

txter1e.Text = LST2.SelectedItem.SubItems(20)

txter1f.Text = LST2.SelectedItem.SubItems(21)

txtpos3.Text = LST2.SelectedItem.SubItems(22)

txter1aa.Text = LST2.SelectedItem.SubItems(23)

txter1bb.Text = LST2.SelectedItem.SubItems(24)

txter1cc.Text = LST2.SelectedItem.SubItems(25)

txter1dd.Text = LST2.SelectedItem.SubItems(26)

txter1ee.Text = LST2.SelectedItem.SubItems(27)

txter1ff.Text = LST2.SelectedItem.SubItems(28)

comstatus.Text = LST2.SelectedItem.SubItems(29)
End Sub

Private Sub txtcomp_name_Change()

Dim rsSearch As New ADODB.Recordset

Dim str As String

Dim item As Single

Dim list As ListItem

If IsEmpty(txtcomp_name) Or txtcomp_name = "" Then

lst1.ListItems.clear

Exit Sub

End If

str = "select *from tbl_company_master where trim(company_name) like'" & Trim(txtcomp_name.Text) &
"%'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With lst1

.ListItems.clear

While Not rsSearch.EOF

Set list = .ListItems.Add(, , rsSearch(0))

If rsSearch(1) <> "" Then

list.SubItems(1) = rsSearch(1)

Else

list.SubItems(1) = ""

End If
rsSearch.MoveNext

Wend

End With

End If

End If

Dim Counter, c

Counter = 0

For c = 1 To lst1.ListItems.count

Counter = Counter + 1

Next

txttot.Text = Counter

End Sub

Public Sub Enable()

txtcompus_no.Enabled = True

txtcid.Enabled = True

txtcomp_name.Enabled = True

txtcpos1.Enabled = True

txtcpos2.Enabled = True

txtcposno1.Enabled = True

txtcposno2.Enabled = True

txtpos1.Enabled = True

txtpos2.Enabled = True

txter1.Enabled = True

txter2.Enabled = True

txter3.Enabled = True

txter4.Enabled = True

txter5.Enabled = True

txter6.Enabled = True

txter1a.Enabled = True

txter1b.Enabled = True

txter1c.Enabled = True

txter1d.Enabled = True

txter1e.Enabled = True

txter1f.Enabled = True

comstatus.Enabled = True
cmdsave.Enabled = True

End Sub

Public Sub disable()

txtcid.Enabled = False

txtcompus_no.Enabled = False

txtcomp_name.Enabled = False

txtcpos1.Enabled = False

txtcpos2.Enabled = False

txtcposno1.Enabled = False

txtcposno2.Enabled = False

txtpos1.Enabled = False

txtpos2.Enabled = False

txter1.Enabled = False

txter2.Enabled = False

txter3.Enabled = False

txter4.Enabled = False

txter5.Enabled = False

txter6.Enabled = False

txter1a.Enabled = False

txter1b.Enabled = False

txter1c.Enabled = False

txter1d.Enabled = False

txter1e.Enabled = False

txter1f.Enabled = False

comstatus.Enabled = False

cmdsave.Enabled = False

End Sub

Public Sub cplist()

j = 1

LST2.ListItems.clear

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company where type=false", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst


With LST2

While rs.EOF = False

If rs(0).VALUE <> "" Then

LST2.ListItems.Add(j) = rs(0).VALUE

End If

If rs(1).VALUE <> "" Then

LST2.ListItems(j).SubItems(1) = rs(1).VALUE

End If

If rs(2).VALUE <> "" Then

LST2.ListItems(j).SubItems(2) = rs(2).VALUE

End If

If rs(3).VALUE <> "" Then

LST2.ListItems(j).SubItems(3) = rs(3).VALUE

End If

If rs(4).VALUE <> "" Then

LST2.ListItems(j).SubItems(4) = rs(4).VALUE

End If

If rs(5).VALUE <> "" Then

LST2.ListItems(j).SubItems(5) = rs(5).VALUE

End If

If rs(6).VALUE <> "" Then

LST2.ListItems(j).SubItems(6) = rs(6).VALUE

End If

If rs(7).VALUE <> "" Then

LST2.ListItems(j).SubItems(7) = rs(7).VALUE

End If

If rs(8).VALUE <> "" Then

LST2.ListItems(j).SubItems(8) = rs(8).VALUE

End If

If rs(9).VALUE <> "" Then

LST2.ListItems(j).SubItems(9) = rs(9).VALUE

End If

If rs(10).VALUE <> "" Then

LST2.ListItems(j).SubItems(10) = rs(10).VALUE

End If
If rs(11).VALUE <> "" Then

LST2.ListItems(j).SubItems(11) = rs(11).VALUE

End If

If rs(12).VALUE <> "" Then

LST2.ListItems(j).SubItems(12) = rs(12).VALUE

End If

If rs(13).VALUE <> "" Then

LST2.ListItems(j).SubItems(13) = rs(13).VALUE

End If

If rs(14).VALUE <> "" Then

LST2.ListItems(j).SubItems(14) = rs(14).VALUE

End If

If rs(15).VALUE <> "" Then

LST2.ListItems(j).SubItems(15) = rs(15).VALUE

End If

If rs(16).VALUE <> "" Then

LST2.ListItems(j).SubItems(16) = rs(16).VALUE

End If

If rs(17).VALUE <> "" Then

LST2.ListItems(j).SubItems(17) = rs(17).VALUE

End If

If rs(18).VALUE <> "" Then

LST2.ListItems(j).SubItems(18) = rs(18).VALUE

End If

If rs(19).VALUE <> "" Then

LST2.ListItems(j).SubItems(19) = rs(19).VALUE

End If

If rs(20).VALUE <> "" Then

LST2.ListItems(j).SubItems(20) = rs(20).VALUE

End If

If rs(21).VALUE <> "" Then

LST2.ListItems(j).SubItems(21) = rs(21).VALUE

End If

If rs(22).VALUE <> "" Then

LST2.ListItems(j).SubItems(22) = rs(22).VALUE
End If

If rs(23).VALUE <> "" Then

LST2.ListItems(j).SubItems(23) = rs(23).VALUE

End If

If rs(24).VALUE <> "" Then

LST2.ListItems(j).SubItems(24) = rs(24).VALUE

End If

If rs(25).VALUE <> "" Then

LST2.ListItems(j).SubItems(25) = rs(25).VALUE

End If

If rs(26).VALUE <> "" Then

LST2.ListItems(j).SubItems(26) = rs(26).VALUE

End If

If rs(27).VALUE <> "" Then

LST2.ListItems(j).SubItems(27) = rs(27).VALUE

End If

If rs(28).VALUE <> "" Then

LST2.ListItems(j).SubItems(28) = rs(28).VALUE

End If

If rs(29).VALUE <> "" Then

LST2.ListItems(j).SubItems(29) = rs(29).VALUE

End If

j = j + 1

rs.MoveNext

Wend

End With

End Sub

Public Sub save()

ctr = 0

ctr1 = 0

If cmp.State = adStateOpen Then

cmp.Close

End If

cmp.Open "select *from tbl_company_master", con, adOpenDynamic, adLockOptimistic

If cmp.BOF = False Then cmp.MoveFirst


While cmp.EOF = False

If cmp(1).VALUE <> Trim(txtcomp_name.Text) Then

ctr = 0

Else

ctr1 = 1

End If

cmp.MoveNext

Wend

If ctr1 <> 1 Then

cmp.AddNew

cmp(0).VALUE = Trim(txtcid.Text)

cmp(1).VALUE = Trim(txtcomp_name.Text)

cmp.Update

End If

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_place_company", con, adOpenDynamic, adLockOptimistic

rs.AddNew

rs(0).VALUE = Trim(txtcompus_no.Text)

rs(1).VALUE = Trim(txtcid.Text)

rs(2).VALUE = Trim(txtcomp_name.Text)

rs(3).VALUE = dtpdate.VALUE

rs(4).VALUE = Trim(txtcpos1.Text)

rs(5).VALUE = Trim(txtcpos2.Text)

rs(6).VALUE = Trim(txtcposno1.Text)

rs(7).VALUE = Trim(txtcposno2.Text)

rs(8).VALUE = Trim(txtpos1.Text)

rs(9).VALUE = Trim(txter1.Text)

rs(10).VALUE = Trim(txter2.Text)

rs(11).VALUE = Trim(txter3.Text)

rs(12).VALUE = Trim(txter4.Text)

rs(13).VALUE = Trim(txter5.Text)

rs(14).VALUE = Trim(txter6.Text)

rs(15).VALUE = Trim(txtpos2.Text)
rs(16).VALUE = Trim(txter1a.Text)

rs(17).VALUE = Trim(txter1b.Text)

rs(18).VALUE = Trim(txter1c.Text)

rs(19).VALUE = Trim(txter1d.Text)

rs(20).VALUE = Trim(txter1e.Text)

rs(21).VALUE = Trim(txter1f.Text)

rs(22).VALUE = Trim(txtpos3.Text)

rs(23).VALUE = Trim(txter1aa.Text)

rs(24).VALUE = Trim(txter1bb.Text)

rs(25).VALUE = Trim(txter1cc.Text)

rs(26).VALUE = Trim(txter1dd.Text)

rs(27).VALUE = Trim(txter1ee.Text)

rs(28).VALUE = Trim(txter1ff.Text)

rs(29).VALUE = Trim(comstatus.Text)

rs(30).VALUE = False

rs.Update

MsgBox ("Record Update")

cmdadd.Caption = "Add"

Call clear

Call disable

End Sub

Public Sub updt()

rs(0).VALUE = Trim(txtcompus_no.Text)

rs(1).VALUE = Trim(txtcid.Text)

rs(2).VALUE = Trim(txtcomp_name.Text)

rs(3).VALUE = dtpdate.VALUE

rs(4).VALUE = Trim(txtcpos1.Text)

rs(5).VALUE = Trim(txtcpos2.Text)

rs(6).VALUE = Trim(txtcposno1.Text)

rs(7).VALUE = Trim(txtcposno2.Text)

rs(8).VALUE = Trim(txtpos1.Text)

rs(9).VALUE = Trim(txter1.Text)

rs(10).VALUE = Trim(txter2.Text)

rs(11).VALUE = Trim(txter3.Text)

rs(12).VALUE = Trim(txter4.Text)
rs(13).VALUE = Trim(txter5.Text)

rs(14).VALUE = Trim(txter6.Text)

rs(15).VALUE = Trim(txtpos2.Text)

rs(16).VALUE = Trim(txter1a.Text)

rs(17).VALUE = Trim(txter1b.Text)

rs(18).VALUE = Trim(txter1c.Text)

rs(19).VALUE = Trim(txter1d.Text)

rs(20).VALUE = Trim(txter1e.Text)

rs(21).VALUE = Trim(txter1f.Text)

rs(22).VALUE = Trim(txtpos3.Text)

rs(23).VALUE = Trim(txter1aa.Text)

rs(24).VALUE = Trim(txter1bb.Text)

rs(25).VALUE = Trim(txter1cc.Text)

rs(26).VALUE = Trim(txter1dd.Text)

rs(27).VALUE = Trim(txter1ee.Text)

rs(28).VALUE = Trim(txter1ff.Text)

rs(29).VALUE = Trim(comstatus.Text)

rs(30).VALUE = False

rs.Update

MsgBox ("Record Update")

Call clear

Call cplist

End Sub
Placement Interest Form

Source Code
Dim rs As New ADODB.Recordset

Dim rs1 As New ADODB.Recordset

Dim con As New ADODB.Connection

Dim ba As New ADODB.Recordset

Dim rssession1 As New ADODB.Recordset

Dim rscourse As New ADODB.Recordset

Dim os As New ADODB.Recordset

Dim ca As New ADODB.Recordset

Dim fa As New ADODB.Recordset

Dim cmp As New ADODB.Recordset

Dim cl As New ADODB.Recordset

Dim cm, mx, f, total, j1, f1

Dim str, lw, gw

Dim mln, frmname


Dim rsSearch As New ADODB.Recordset

Dim cp As New ADODB.Recordset

Private Sub chkall_Click()

Dim k

If chkall.VALUE = 1 Then

For k = 1 To listdetails.ListItems.count

listdetails.ListItems(k).Checked = True

Next

Else

For k = 1 To listdetails.ListItems.count

listdetails.ListItems(k).Checked = False

Next

End If

End Sub

Private Sub cmdenr_Click()

frmcomp_ser.Show

End Sub

Private Sub cmdnxt_Click()

Unload Me

frm_compus_attendence.Show

End Sub

Private Sub cmdok_Click()

lst.ListItems.clear

listdetails.ListItems.clear

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 Then

j=1

str = "select *from tbl_batch_allow where trim(Crs_CourseID)='" & Trim(txtcourse.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close
End If

rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

End If

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE

End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE

End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If

If rsSearch(7).VALUE <> "" Then

listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then


listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE

End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend

txttot.Text = j - 1

Exit Sub

End If

'**********************

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 Then

listdetails.ListItems.clear

j=1

str = "select *from tbl_batch_allow where trim(crs_semester)='" & Trim(txtsem.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

Else

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE

End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE

End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If

If rsSearch(7).VALUE <> "" Then

listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then

listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE
End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend

txttot.Text = j - 1

Exit Sub

End If

End If

'*******************************

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 Then

'MsgBox ("Select course and semster first")

'Exit Sub

'Else

listdetails.ListItems.clear

j=1
str = "select *from tbl_batch_allow where trim(std_session)= '" & Trim(combsession.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

Else

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE

End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE

End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If

If rsSearch(7).VALUE <> "" Then


listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then

listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE

End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend

txttot.Text = j - 1

Exit Sub

End If

End If

'*******************************

'*********course with sem***************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 Then

listdetails.ListItems.clear
j=1

str = "select *from tbl_batch_allow where trim(Crs_CourseID)='" & Trim(txtcourse.Text) & "'and trim(crs_semester)='"
& Trim(txtsem.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

Else

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE

End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE

End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If
If rsSearch(7).VALUE <> "" Then

listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then

listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE

End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend

txttot.Text = j - 1

Exit Sub

End If

End If

'****************************************

'***********coursw with session**********8

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 Then


'MsgBox ("Select course and semster first")

'Exit Sub

'Else

listdetails.ListItems.clear

j=1

str = "select *from tbl_batch_allow where trim(Crs_CourseID)='" & Trim(txtcourse.Text) & "'and trim(std_session)= '" &
Trim(combsession.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

Else

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE

End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE
End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If

If rsSearch(7).VALUE <> "" Then

listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then

listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE

End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend

txttot.Text = j - 1

Exit Sub

End If
End If

'********************************************

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 Then

MsgBox ("Select the option at first")

Exit Sub

Else

listdetails.ListItems.clear

j=1

str = "select *from tbl_batch_allow where trim(Crs_CourseID)='" & Trim(txtcourse.Text) & "'and trim(crs_semester)='"
& Trim(txtsem.Text) & "'and trim(std_session)= '" & Trim(combsession.Text) & "'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("Not Found")

Exit Sub

Else

rsSearch.MoveFirst

While rsSearch.EOF = False

If rsSearch(0).VALUE <> "" Then

listdetails.ListItems.Add(j) = rsSearch(0).VALUE

End If

If rsSearch(1).VALUE <> "" Then

listdetails.ListItems(j).SubItems(1) = rsSearch(1).VALUE

End If

If rsSearch(2).VALUE <> "" Then

listdetails.ListItems(j).SubItems(2) = rsSearch(2).VALUE

End If

If rsSearch(3).VALUE <> "" Then

listdetails.ListItems(j).SubItems(3) = rsSearch(3).VALUE
End If

If rsSearch(4).VALUE <> "" Then

listdetails.ListItems(j).SubItems(4) = rsSearch(4).VALUE

End If

If rsSearch(5).VALUE <> "" Then

listdetails.ListItems(j).SubItems(5) = rsSearch(5).VALUE

End If

If rsSearch(7).VALUE <> "" Then

listdetails.ListItems(j).SubItems(6) = rsSearch(7).VALUE

End If

If rsSearch(8).VALUE <> "" Then

listdetails.ListItems(j).SubItems(7) = rsSearch(8).VALUE

End If

If rsSearch(9).VALUE <> "" Then

listdetails.ListItems(j).SubItems(8) = rsSearch(9).VALUE

End If

If rsSearch(10).VALUE <> "" Then

listdetails.ListItems(j).SubItems(9) = rsSearch(10).VALUE

End If

If rsSearch(11).VALUE <> "" Then

listdetails.ListItems(j).SubItems(10) = rsSearch(11).VALUE

End If

If rsSearch(12).VALUE <> "" Then

listdetails.ListItems(j).SubItems(11) = rsSearch(12).VALUE

End If

If rsSearch(13).VALUE <> "" Then

listdetails.ListItems(j).SubItems(12) = rsSearch(13).VALUE

End If

j=j+1

rsSearch.MoveNext

Wend
txttot.Text = j - 1

Exit Sub

End If

End If

End Sub

Private Sub cmdost_Click()

frmoside.Show

End Sub

Private Sub cmdsv_Click()

If combdata.Text = "" Then

MsgBox ("Select whether you are submit bio data or not")

Exit Sub

End If

If listdetails.ListItems.count = 0 Then

MsgBox ("No record to save")

Exit Sub

End If

lst.ListItems.clear

If com_name.Text = "Select company name" Then

MsgBox ("Select company name at first")

Exit Sub

End If

If cmp.State = adStateOpen Then

cmp.Close

End If

cmp.Open "select *from tbl_place_company where trim(com_name)='" & Trim(com_name.Text) & "' and
trim(com_date)='" & Trim(txtdate.VALUE) & "' and type=false", con, adOpenDynamic, adLockOptimistic

If cmp.BOF = False Then cmp.MoveFirst

If cmp.BOF And cmp.EOF Then

MsgBox ("Company name or Interview date is invalied please check it")

Exit Sub

Else
'txtcampus_no.Text = cmp(0).VALUE

End If

Call id

j=1

j1 = 1

If listdetails.ListItems.count <> 0 Then

For j = j To listdetails.ListItems.count

If listdetails.ListItems(j).Checked = True Then

If listdetails.SelectedItem.SubItems(1) <> "" Then

str = listdetails.SelectedItem.SubItems(1)

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

If cp.BOF And cp.EOF Then

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

cp.AddNew

cp.Fields(0) = Trim(txtcno.Text)

cp.Fields(1) = lst.ListItems(j1).Text

cp.Fields(2) = listdetails.ListItems(j).Text

cp.Fields(3) = listdetails.ListItems(j).SubItems(1)

cp.Fields(4) = listdetails.ListItems(j).SubItems(2)

cp.Fields(5) = listdetails.ListItems(j).SubItems(3)

cp.Fields(6) = listdetails.ListItems(j).SubItems(4)

cp.Fields(7) = listdetails.ListItems(j).SubItems(5)

cp.Fields(8) = listdetails.ListItems(j).SubItems(7)
cp.Fields(9) = listdetails.ListItems(j).SubItems(8)

cp.Fields(10) = listdetails.ListItems(j).SubItems(9)

cp.Fields(11) = listdetails.ListItems(j).SubItems(10)

cp.Fields(12) = listdetails.ListItems(j).SubItems(11)

cp.Fields(13) = True

cp.Fields(14) = Trim(com_name.Text)

cp.Fields(15) = txtdate.VALUE

If combdata.Text = "Submit" Then

cp(16).VALUE = True

Else

cp(16).VALUE = False

End If

cp.Fields(17) = False

cp.Fields(18) = False

cp.Update

Else

'***********8

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

cp.Fields(0) = Trim(txtcno.Text)

cp.Fields(1) = lst.ListItems(j1).Text

cp.Fields(2) = listdetails.ListItems(j).Text

cp.Fields(3) = listdetails.ListItems(j).SubItems(1)

cp.Fields(4) = listdetails.ListItems(j).SubItems(2)

cp.Fields(5) = listdetails.ListItems(j).SubItems(3)

cp.Fields(6) = listdetails.ListItems(j).SubItems(4)

cp.Fields(7) = listdetails.ListItems(j).SubItems(5)

cp.Fields(8) = listdetails.ListItems(j).SubItems(7)
cp.Fields(9) = listdetails.ListItems(j).SubItems(8)

cp.Fields(10) = listdetails.ListItems(j).SubItems(9)

cp.Fields(11) = listdetails.ListItems(j).SubItems(10)

cp.Fields(12) = listdetails.ListItems(j).SubItems(11)

cp.Fields(13) = True

cp.Fields(14) = Trim(com_name.Text)

cp.Fields(15) = txtdate.VALUE

If combdata.Text = "Submit" Then

cp(16).VALUE = True

Else

cp(16).VALUE = False

End If

cp.Fields(17) = False

cp.Fields(18) = False

cp.Update

'**************

End If

Else

str = listdetails.SelectedItem.Text

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

If cp.BOF And cp.EOF Then

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

cp.AddNew
cp.Fields(0) = Trim(txtcno.Text)

cp.Fields(1) = lst.ListItems(j1).Text

cp.Fields(2) = listdetails.ListItems(j).Text

cp.Fields(3) = listdetails.ListItems(j).SubItems(1)

cp.Fields(4) = listdetails.ListItems(j).SubItems(2)

cp.Fields(5) = listdetails.ListItems(j).SubItems(3)

cp.Fields(6) = listdetails.ListItems(j).SubItems(4)

cp.Fields(7) = listdetails.ListItems(j).SubItems(5)

cp.Fields(8) = listdetails.ListItems(j).SubItems(7)

cp.Fields(9) = listdetails.ListItems(j).SubItems(8)

cp.Fields(10) = listdetails.ListItems(j).SubItems(9)

cp.Fields(11) = listdetails.ListItems(j).SubItems(10)

cp.Fields(12) = listdetails.ListItems(j).SubItems(11)

cp.Fields(13) = True

cp.Fields(14) = Trim(com_name.Text)

cp.Fields(15) = txtdate.VALUE

If combdata.Text = "Submit" Then

cp(16).VALUE = True

Else

cp(16).VALUE = False

End If

cp.Fields(17) = False

cp.Fields(18) = False

cp.Update

Else

'***********8

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst


cp.Fields(0) = Trim(txtcno.Text)

cp.Fields(1) = lst.ListItems(j1).Text

cp.Fields(2) = listdetails.ListItems(j).Text

cp.Fields(3) = listdetails.ListItems(j).SubItems(1)

cp.Fields(4) = listdetails.ListItems(j).SubItems(2)

cp.Fields(5) = listdetails.ListItems(j).SubItems(3)

cp.Fields(6) = listdetails.ListItems(j).SubItems(4)

cp.Fields(7) = listdetails.ListItems(j).SubItems(5)

cp.Fields(8) = listdetails.ListItems(j).SubItems(7)

cp.Fields(9) = listdetails.ListItems(j).SubItems(8)

cp.Fields(10) = listdetails.ListItems(j).SubItems(9)

cp.Fields(11) = listdetails.ListItems(j).SubItems(10)

cp.Fields(12) = listdetails.ListItems(j).SubItems(11)

cp.Fields(13) = True

cp.Fields(14) = Trim(com_name.Text)

cp.Fields(15) = txtdate.VALUE

If combdata.Text = "Submit" Then

cp(16).VALUE = True

Else

cp(16).VALUE = False

End If

cp.Fields(17) = False

cp.Fields(18) = False

cp.Update

'**************

End If

End If

j1 = j1 + 1

Else

End If

Next
MsgBox ("Records Update")

listdetails.ListItems.clear

Call clear

com_name.Text = "Select company name"

Else

MsgBox ("No record display")

Exit Sub

End If

End Sub

Private Sub com_name_LostFocus()

Call back

End Sub

Private Sub Form_Load()

f=0

total = 0

cm = 0

mx = 0

j=0

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

'*************************

com_name.clear

txtdate.VALUE = Date

lst.ListItems.clear

If cl.State = adStateOpen Then

cl.Close

End If

cl.Open "select * from tbl_place_company where type=false", con, adOpenDynamic, adLockOptimistic

While cl.EOF = False

com_name.AddItem cl(2)
cl.MoveNext

Wend

com_name.Text = "Select company name"

If rssession1.State = adStateOpen Then

rssession1.Close

End If

rssession1.Open "select * from tbl_Session order by crs_sessiondate desc", con, adOpenDynamic, adLockOptimistic

While rssession1.EOF = False

combsession.AddItem rssession1(0)

rssession1.MoveNext

Wend

j1 = 1

'*************************

If rscourse.State = adStateOpen Then

rscourse.Close

End If

rscourse.Open "select * from tbl_Course_Master", con, adOpenDynamic, adLockOptimistic

While rscourse.EOF = False

txtcourse.AddItem rscourse(2)

rscourse.MoveNext

Wend

'********************8

If ba.State = adStateOpen Then

ba.Close

End If

ba.Open "select *from tbl_batch_allow", con, adOpenDynamic, adLockOptimistic

If ba.BOF = False Then ba.MoveFirst

While Not ba.EOF

cm = (cm + 1)

ba.MoveNext

Wend
'MsgBox cm

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from qur_batch_allo", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

While Not rs.EOF

mx = (mx + 1)

rs.MoveNext

Wend

'MsgBox (mx)

If fa.State = adStateOpen Then

fa.Close

End If

fa.Open "select *from qur_fresh_addmission", con, adOpenDynamic, adLockOptimistic

If fa.BOF = False Then fa.MoveFirst

While Not fa.EOF

f = (f + 1)

fa.MoveNext

Wend

If os.State = adStateOpen Then

os.Close

End If

os.Open "select *from qur_outsider_std", con, adOpenDynamic, adLockOptimistic

If os.BOF = False Then os.MoveFirst

While Not os.EOF

f1 = (f1 + 1)

os.MoveNext

Wend

'MsgBox (f)
total = (mx + f + f1)

'MsgBox (total)

If cm = total Then

'MsgBox ("dd")

Exit Sub

Else

If ba.State = adStateOpen Then

ba.Close

End If

ba.Open "delete *from tbl_batch_allow", con, adOpenDynamic, adLockOptimistic

If ba.State = adStateOpen Then

ba.Close

End If

ba.Open "select *from tbl_batch_allow", con, adOpenDynamic, adLockOptimistic

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from qur_batch_allo", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

While Not rs.EOF

ba.AddNew

ba.Fields(0) = rs.Fields(0)

ba.Fields(1) = rs.Fields(1)

ba.Fields(2) = rs.Fields(2)

ba.Fields(3) = rs.Fields(3)

ba.Fields(4) = rs.Fields(4)

ba.Fields(5) = rs.Fields(5)

ba.Fields(6) = False

ba.Fields(7) = ""

ba.Fields(8) = rs.Fields(6)

ba.Fields(9) = rs.Fields(7)
ba.Fields(10) = rs.Fields(10)

ba.Fields(11) = rs.Fields(9)

ba.Fields(12) = rs.Fields(8)

ba.Fields(13) = rs.Fields(11)

rs.MoveNext

Wend

ba.Update

End If

If fa.State = adStateOpen Then

fa.Close

End If

fa.Open "select *from qur_fresh_addmission", con, adOpenDynamic, adLockOptimistic

If fa.BOF = False Then fa.MoveFirst

While Not fa.EOF

ba.AddNew

ba.Fields(0) = fa.Fields(0)

ba.Fields(1) = ""

ba.Fields(2) = fa.Fields(1)

ba.Fields(3) = fa.Fields(2)

ba.Fields(4) = fa.Fields(3)

ba.Fields(5) = fa.Fields(4)

ba.Fields(6) = False

ba.Fields(7) = ""

ba.Fields(8) = fa.Fields(5)

ba.Fields(9) = fa.Fields(6)

ba.Fields(10) = fa.Fields(9)

ba.Fields(11) = fa.Fields(8)

ba.Fields(12) = fa.Fields(7)

fa.MoveNext

Wend

ba.Update
'**************

If os.State = adStateOpen Then

os.Close

End If

os.Open "select *from qur_outsider_std", con, adOpenDynamic, adLockOptimistic

If os.BOF = False Then os.MoveFirst

While Not os.EOF

ba.AddNew

ba.Fields(0) = "0"

ba.Fields(1) = os.Fields(0)

ba.Fields(2) = os.Fields(1)

ba.Fields(3) = os.Fields(2)

ba.Fields(9) = os.Fields(3)

os.MoveNext

Wend

ba.Update

'***********************

txtid1.Visible = False

txtdate.VALUE = Date

End Sub

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

End Sub

Private Sub listdetails_Click()

If listdetails.SelectedItem.Checked = False Then

listdetails.SelectedItem.Checked = True

Else

listdetails.SelectedItem.Checked = False

End If
End Sub

Private Sub Timer1_Timer()

frmname = " Placement Interest form"

If mln > 25 Then mln = 2 Else mln = mln + 1

frmStd_inter.Caption = Left(frmname, mln)

End Sub

Private Sub txtcid_Change()

'txtcno.Enabled = False

'txtcid.Enabled = True

'Call clear2

Dim rsSearch As New ADODB.Recordset

Dim item As Single

Dim list As ListItem

If IsEmpty(txtcid) Or txtcid = "" Then

'Call clear2

Exit Sub

End If

str = "select *from tbl_place_company where trim(Company_id) like'" & Trim(txtcid.Text) & "%'and type=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True And rsSearch.BOF = True Then

Exit Sub

End If

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

txtcno.Text = rsSearch(0).VALUE

com_name.Text = rsSearch(2).VALUE

txtdate.VALUE = rsSearch(3).VALUE
rsSearch.MoveNext

Wend

End Sub

Private Sub txtcno_Change()

type=false"

'If rsSearch.State = adStateOpen Then

'rsSearch.Close

'End If

'rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

'If rsSearch.EOF = True And rsSearch.BOF = True Then

'MsgBox ("this companay is not comming")

'Exit Sub

'End If

'If rsSearch.BOF = False Then rsSearch.MoveFirst

'While rsSearch.EOF = False

'txtcid.Text = rsSearch(1).VALUE

' com_name.Text = rsSearch(2).VALUE

' txtdate.VALUE = rsSearch(3).VALUE

' rsSearch.MOVENEXT

'Wend

End Sub

Private Sub txtdate_LostFocus()

Call back

End Sub

Private Sub txtid1_Click()

txtid1.Visible = False

txtcid.Visible = True

End Sub

Private Sub TXTNAME_Change()


lst.ListItems.clear

Dim item As Single

Dim list As ListItem

If IsEmpty(txtname) Or txtname = "" Then

listdetails.ListItems.clear

Exit Sub

End If

str = "select *from tbl_batch_allow where trim(std_name) like'" & Trim(txtname.Text) & "%'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With listdetails

While Not rsSearch.EOF

Set list = .ListItems.Add(, , rsSearch(0))

If rsSearch(1) <> "" Then

list.SubItems(1) = rsSearch(1)

End If

If rsSearch(2) <> "" Then

list.SubItems(2) = rsSearch(2)

End If

If rsSearch(3) <> "" Then


list.SubItems(3) = rsSearch(3)

End If

If rsSearch(4) <> "" Then

list.SubItems(4) = rsSearch(4)

End If

If rsSearch(5) <> "" Then

list.SubItems(5) = rsSearch(5)

End If

If rsSearch(7) <> "" Then

list.SubItems(6) = rsSearch(7)

End If

If rsSearch(8) <> "" Then

list.SubItems(7) = rsSearch(8)

End If

If rsSearch(9) <> "" Then

list.SubItems(8) = rsSearch(9)

End If

If rsSearch(10) <> "" Then

list.SubItems(9) = rsSearch(10)

End If

If rsSearch(11) <> "" Then

list.SubItems(10) = rsSearch(11)

End If

If rsSearch(12) <> "" Then

list.SubItems(11) = rsSearch(12)

End If

If rsSearch(13) <> "" Then

list.SubItems(12) = rsSearch(13)

End If

rsSearch.MoveNext

Wend
End With

End If

End If

Dim Counter, c

Counter = 0

For c = 1 To listdetails.ListItems.count

Counter = Counter + 1

Next

txttot.Text = Counter - 1

End Sub

Private Sub txtroll_Change()

lst.ListItems.clear

If chk1.VALUE = 1 And chk2.VALUE = 0 Then

MsgBox ("Diselect course at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 0 Then

MsgBox ("Diselect Sem at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 1 Then

MsgBox ("Diselect Course and Sem at first")

Exit Sub

End If

Dim item As Single

Dim list As ListItem

If IsEmpty(txtroll) Or txtroll = "" Then

listdetails.ListItems.clear

Exit Sub

End If

str = "select *from tbl_batch_allow where trim(std_RollNo) like'" & Trim(txtroll.Text) & "%'"

If rsSearch.State = adStateOpen Then

rsSearch.Close
End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With listdetails

.ListItems.clear

While Not rsSearch.EOF

Set list = .ListItems.Add(, , rsSearch(0))

If rsSearch(1) <> "" Then

list.SubItems(1) = rsSearch(1)

End If

If rsSearch(2) <> "" Then

list.SubItems(2) = rsSearch(2)

End If

If rsSearch(3) <> "" Then

list.SubItems(3) = rsSearch(3)

End If

If rsSearch(4) <> "" Then

list.SubItems(4) = rsSearch(4)

End If

If rsSearch(5) <> "" Then

list.SubItems(5) = rsSearch(5)

End If

If rsSearch(7) <> "" Then


list.SubItems(6) = rsSearch(7)

End If

If rsSearch(8) <> "" Then

list.SubItems(7) = rsSearch(8)

End If

If rsSearch(9) <> "" Then

list.SubItems(8) = rsSearch(9)

End If

If rsSearch(10) <> "" Then

list.SubItems(9) = rsSearch(10)

End If

If rsSearch(11) <> "" Then

list.SubItems(10) = rsSearch(11)

End If

If rsSearch(12) <> "" Then

list.SubItems(11) = rsSearch(12)

End If

If rsSearch(13) <> "" Then

list.SubItems(12) = rsSearch(13)

End If

rsSearch.MoveNext

Wend

End With

End If

End If

Dim Counter, c

Counter = 0

For c = 1 To listdetails.ListItems.count

Counter = Counter + 1

Next

txttot.Text = Counter - 1
End Sub

Public Sub clear()

txtid1.Visible = False

txtroll.Text = ""

txtname.Text = ""

chk1.VALUE = 0

chk2.VALUE = 0

chkall.VALUE = 0

txtcid.Text = ""

combsession.Text = ""

chk3.VALUE = 0

txttot.Text = ""

combdata.Text = ""

End Sub

Public Sub back()

txtcid.Visible = False

txtid1.Visible = True

If cl.State = adStateOpen Then

cl.Close

End If

cl.Open "select * from tbl_place_company where trim(com_name)='" & Trim(com_name.Text) & "'and type= false", con,
adOpenDynamic, adLockOptimistic

If cl.BOF = False Then cl.MoveFirst

If cl.BOF And cl.EOF Then

'MsgBox ("No record found")

Exit Sub

End If

While cl.EOF = False

txtcno.Text = cl(0).VALUE

txtid1.Text = cl(1).VALUE

txtdate.VALUE = cl(3).VALUE

cl.MoveNext
Wend

End Sub

Public Sub id()

j=1

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student", con, adOpenDynamic, adLockOptimistic

If cp.BOF = False Then cp.MoveFirst

If cp.BOF And cp.EOF Then

With lst

j1 = 1

For j = j To listdetails.ListItems.count

If listdetails.ListItems(j).Checked = True Then

If j1 <= 9 Then

.ListItems.Add(j1) = "i" & 0 & 0 & 0 & 0 & j1

ElseIf j1 > 9 And j1 <= 99 Then

.ListItems.Add(j1) = "i" & 0 & 0 & 0 & j1

ElseIf j1 > 99 And j1 <= 999 Then

.ListItems.Add(j1) = "i" & 0 & 0 & j1

ElseIf j1 > 999 And j1 <= 9999 Then

.ListItems.Add(j1) = "i" & 0 & j1

ElseIf j1 > 9999 And j1 <= 99999 Then

.ListItems.Add(j1) = "i" & j1

ElseIf j1 > 99999 Then

.ListItems.Add(j1) = "i" & j1 + 1

End If

j1 = j1 + 1

Else

End If

Next
End With

'MsgBox ("deepak")

Exit Sub

Else

lst.ListItems.clear

j1 = 1

j=1

If cp.State = adStateOpen Then

cp.Close

End If

cp.Open "select *from tbl_interested_student order by Interview_id", con, adOpenDynamic, adLockOptimistic

If cp.EOF = False Then cp.MoveLast

str = (Mid(Trim(cp(1).VALUE), 2))

With lst

For j = j To listdetails.ListItems.count

If listdetails.ListItems(j).Checked = True Then

If str > 0 And str < 9 Then

str = str + 1

.ListItems.Add(j1) = "i" & 0 & 0 & 0 & 0 & str

ElseIf str >= 9 And str < 99 Then

str = str + 1

.ListItems.Add(j1) = "i" & 0 & 0 & 0 & str

ElseIf str >= 99 And str < 999 Then

str = str + 1

.ListItems.Add(j1) = "i" & 0 & 0 & str

ElseIf str >= 999 And str <= 9999 Then

str = str + 1

.ListItems.Add(j1) = "i" & 0 & str

ElseIf str >= 9999 And str < 99999 Then

str = str + 1

.ListItems.Add(j1) = "i" & str


ElseIf str >= 99999 Then

.ListItems.Add(j1) = "i" & str + 1

End If

j1 = j1 + 1

End If

Next

End With

'chkall.VALUE = 0

Exit Sub

End If

End Sub

Company for Campus


Source code
Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim rs1 As New ADODB.Recordset

Dim bat As New ADODB.Recordset

Dim rscourse As New ADODB.Recordset

Dim tmp As New ADODB.Recordset

Dim rsfin As New ADODB.Recordset

Dim rssession1 As New ADODB.Recordset

Dim rsSearch As New ADODB.Recordset

Dim cl As New ADODB.Recordset

Dim fa As New ADODB.Recordset

Dim rsSearch1 As New ADODB.Recordset

Dim irst As New ADODB.Recordset

Dim ar As New ADODB.Recordset

Dim ba As New ADODB.Recordset

Dim cp As New ADODB.Recordset

Dim j, str

Dim k

Private Sub Check1_Click()

If chkall.VALUE = 1 Then
For k = 1 To lst2.ListItems.count

lst2.ListItems(k).Checked = True

Next

Else

For k = 1 To lst2.ListItems.count

lst2.ListItems(k).Checked = False

Next

End If

End Sub

Private Sub chka1_Click()

End Sub

Private Sub cmdbk_Click()

frmStd_inter.Show

End Sub

Private Sub cmdok_Click()

txtsearch1.Text = ""

txtsearch.Text = ""

txtsearch2.Text = ""

txtsearch3.Text = ""

txtsearch4.Text = ""

Call data

End Sub

Private Sub cmds_Click()

If txtcno.Text = "" Then

MsgBox ("select company name at first")

Exit Sub

End If
If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(Interview_id)='" & Trim(txtid.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("This student did not fill interest form")

Exit Sub

End If

rsSearch(16).VALUE = True

rsSearch.Update

Call res

txtid.Text = ""

End Sub

Private Sub cmdsub_Click()

'**********************************

If lst3.ListItems.count = 0 Then

MsgBox ("No record display for present student")

Exit Sub

End If

j=1

For j = j To lst3.ListItems.count

If lst3.ListItems(j).SubItems(3) <> "" Then

str = lst3.ListItems(j).SubItems(3)

If rs1.State = adStateOpen Then

rs1.Close

End If

rs1.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'", con, adOpenDynamic,
adLockOptimistic

If rs1.BOF = False Then rs1.MoveFirst

If rs1.BOF And rs1.EOF Then


Exit Sub

End If

rs1(20).VALUE = True

rs1.Update

Else

str = lst3.ListItems(j).SubItems(2)

If rs1.State = adStateOpen Then

rs1.Close

End If

rs1.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'", con, adOpenDynamic,
adLockOptimistic

If rs1.BOF = False Then rs1.MoveFirst

If rs1.BOF And rs1.EOF Then

Exit Sub

End If

rs1(20).VALUE = True

rs1.Update

End If

Next

lst2.ListItems.clear

lst5.ListItems.clear

lst4.ListItems.clear

txtsearch.Text = ""

txtsearch1.Text = ""

txtid.Text = ""

chk1.VALUE = 0

chk2.VALUE = 0

chk3.VALUE = 0

txtcourse.Text = ""

txtsem.Text = ""

lst3.ListItems.clear

frmlist_in.Caption = ""
frmlist_in.Caption = frmlist_in.Caption & " " & "(List of interested student :"

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student :"

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

listof_select.Caption = ""

listof_select.Caption = "(List of all selected student :"

'***********************************

If rs1.State = adStateOpen Then

rs1.Close

End If

rs1.Open "select *from tbl_place_company where trim(comps_auto_no)='" & Trim(txtcno.Text) & "' ", con,
adOpenDynamic, adLockOptimistic

If rs1.BOF = False Then rs1.MoveFirst

rs1(2).VALUE = Trim(txtcname.Text)

rs1(3).VALUE = DTPdate.VALUE

rs1(29).VALUE = "Held"

rs1(30).VALUE = True

rs1.Update

'Call list2

MsgBox ("records update")

End Sub

Private Sub Form_Load()

Call setdatabase

Set con = New ADODB.Connection

con.Open datastr

Set rs = New ADODB.Recordset

Dim cm, mx, f, total

cm = 0

f=0

mx = 0

If rscourse.State = adStateOpen Then


rscourse.Close

End If

rscourse.Open "select * from tbl_Course_Master", con, adOpenDynamic, adLockOptimistic

While rscourse.EOF = False

txtcourse.AddItem rscourse(2)

rscourse.MoveNext

Wend

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "delete *from tbl_std_selection_tbl", con, adOpenDynamic, adLockOptimistic

Dim j

j=1

If rssession1.State = adStateOpen Then

rssession1.Close

End If

rssession1.Open "select * from tbl_Session order by crs_sessiondate desc", con, adOpenDynamic, adLockOptimistic

While rssession1.EOF = False

combsession.AddItem rssession1(0)

rssession1.MoveNext

Wend

DTPdate.VALUE = Date

End Sub

Private Sub TXTNAME_Change()

Dim rsSearch As New ADODB.Recordset

Dim item As Single

Dim list As ListItem

If IsEmpty(txtname) Or txtname = "" Then

ls1.ListItems.clear

Exit Sub

End If
str = "select *from tbl_batch_allow where trim(std_name) like'" & Trim(txtname.Text) & "%'"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With ls1

.ListItems.clear

While Not rsSearch.EOF

Set list = .ListItems.Add(, , rsSearch(0))

If rsSearch(1) <> "" Then

list.SubItems(1) = rsSearch(1)

Else

list.SubItems(1) = ""

End If

If rsSearch(2) <> "" Then

list.SubItems(2) = rsSearch(2)

Else

list.SubItems(2) = ""

End If

If rsSearch(3) <> "" Then

list.SubItems(3) = rsSearch(3)
Else

list.SubItems(3) = ""

End If

If rsSearch(4) <> "" Then

list.SubItems(4) = rsSearch(4)

Else

list.SubItems(4) = ""

End If

''If rsSearch(5) <> "" Then

''list.SubItems(5) = rsSearch(5)

''End If

rsSearch.MoveNext

Wend

End With

End If

End If

Dim Counter, c

Counter = 0

For c = 1 To ls1.ListItems.count

Counter = Counter + 1

Next

txttot.Text = Counter

End Sub

Private Sub lblbiodata_Click()

Dim EX As New Application

Dim Book As Workbook

Dim Sheet As Worksheet


Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"

EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"

EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To listdetails.ListItems.count

EX.Cells(i + 1, 1) = listdetails.ListItems(i).SubItems(1)

EX.Cells(i + 1, 2) = listdetails.ListItems(i).SubItems(3)

EX.Cells(i + 1, 3) = listdetails.ListItems(i).SubItems(2)

EX.Cells(i + 1, 4) = listdetails.ListItems(i).SubItems(4)

EX.Cells(i + 1, 5) = listdetails.ListItems(i).SubItems(5)

EX.Cells(i + 1, 6) = listdetails.ListItems(i).SubItems(6)

EX.Cells(i + 1, 7) = listdetails.ListItems(i).SubItems(7)

EX.Cells(i + 1, 8) = listdetails.ListItems(i).SubItems(8)

EX.Cells(i + 1, 9) = listdetails.ListItems(i).SubItems(9)

EX.Cells(i + 1, 10) = listdetails.ListItems(i).SubItems(10)

Next

EX.Visible = True

Sheet.Columns.Cells.ColumnWidth = 12

Sheet.Activate
End With

End Sub

Private Sub lblprn_Click()

Call prn1

End Sub

Private Sub lblprn1_Click()

Dim EX As New Application

Dim Book As Workbook

Dim Sheet As Worksheet

Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"

EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"

EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To lst2.ListItems.count

EX.Cells(i + 1, 1) = lst2.ListItems(i).SubItems(3)

EX.Cells(i + 1, 2) = lst2.ListItems(i).SubItems(2)

EX.Cells(i + 1, 3) = lst2.ListItems(i).SubItems(4)

EX.Cells(i + 1, 4) = lst2.ListItems(i).SubItems(5)
EX.Cells(i + 1, 5) = lst2.ListItems(i).SubItems(6)

EX.Cells(i + 1, 6) = lst2.ListItems(i).SubItems(7)

EX.Cells(i + 1, 7) = lst2.ListItems(i).SubItems(8)

EX.Cells(i + 1, 8) = lst2.ListItems(i).SubItems(9)

EX.Cells(i + 1, 9) = lst2.ListItems(i).SubItems(10)

EX.Cells(i + 1, 10) = lst2.ListItems(i).SubItems(11)

Next

EX.Visible = True

Sheet.Columns.Cells.ColumnWidth = 12

Sheet.Activate

End With

End Sub

Private Sub lblprn3_Click()

Dim EX As New Application

Dim Book As Workbook

Dim Sheet As Worksheet

Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"

EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"
EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To lst3.ListItems.count

EX.Cells(i + 1, 1) = lst3.ListItems(i).SubItems(2)

EX.Cells(i + 1, 2) = lst3.ListItems(i).SubItems(1)

EX.Cells(i + 1, 3) = lst3.ListItems(i).SubItems(3)

EX.Cells(i + 1, 4) = lst3.ListItems(i).SubItems(4)

EX.Cells(i + 1, 5) = lst3.ListItems(i).SubItems(5)

EX.Cells(i + 1, 6) = lst3.ListItems(i).SubItems(6)

EX.Cells(i + 1, 7) = lst3.ListItems(i).SubItems(7)

EX.Cells(i + 1, 8) = lst3.ListItems(i).SubItems(8)

EX.Cells(i + 1, 9) = lst3.ListItems(i).SubItems(9)

EX.Cells(i + 1, 10) = lst3.ListItems(i).SubItems(10)

Next

EX.Visible = True

Sheet.Columns.Cells.ColumnWidth = 12

Sheet.Activate

End With

End Sub

Private Sub lblprn4_Click()

Dim EX As New Application

Dim Book As Workbook

Dim Sheet As Worksheet

Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"
EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"

EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To lst4.ListItems.count

EX.Cells(i + 1, 1) = lst4.ListItems(i).SubItems(2)

EX.Cells(i + 1, 2) = lst4.ListItems(i).SubItems(1)

EX.Cells(i + 1, 3) = lst4.ListItems(i).SubItems(3)

EX.Cells(i + 1, 4) = lst4.ListItems(i).SubItems(4)

EX.Cells(i + 1, 5) = lst4.ListItems(i).SubItems(5)

EX.Cells(i + 1, 6) = lst4.ListItems(i).SubItems(6)

EX.Cells(i + 1, 7) = lst4.ListItems(i).SubItems(7)

EX.Cells(i + 1, 8) = lst4.ListItems(i).SubItems(8)

EX.Cells(i + 1, 9) = lst4.ListItems(i).SubItems(9)

EX.Cells(i + 1, 10) = lst4.ListItems(i).SubItems(10)

Next

EX.Visible = True

Sheet.Columns.Cells.ColumnWidth = 12

Sheet.Activate

End With

End Sub

Private Sub lblprn5_Click()

Dim EX As New Application


Dim Book As Workbook

Dim Sheet As Worksheet

Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"

EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"

EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To lst6.ListItems.count

EX.Cells(i + 1, 1) = lst6.ListItems(i).SubItems(2)

EX.Cells(i + 1, 2) = lst6.ListItems(i).SubItems(1)

EX.Cells(i + 1, 3) = lst6.ListItems(i).SubItems(3)

EX.Cells(i + 1, 4) = lst6.ListItems(i).SubItems(4)

EX.Cells(i + 1, 5) = lst6.ListItems(i).SubItems(5)

EX.Cells(i + 1, 6) = lst6.ListItems(i).SubItems(6)

EX.Cells(i + 1, 7) = lst6.ListItems(i).SubItems(7)

EX.Cells(i + 1, 8) = lst6.ListItems(i).SubItems(8)

EX.Cells(i + 1, 9) = lst6.ListItems(i).SubItems(9)

EX.Cells(i + 1, 10) = lst6.ListItems(i).SubItems(10)

Next

EX.Visible = True
Sheet.Columns.Cells.ColumnWidth = 15

Sheet.Activate

End With

End Sub

Private Sub listdetails_Click()

If listdetails.ListItems.count = 0 Then

Exit Sub

End If

Dim eno

If listdetails.SelectedItem.Checked = True Then

listdetails.SelectedItem.Checked = False

eno = listdetails.SelectedItem.SubItems(4)

If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res1

Else

listdetails.SelectedItem.Checked = True

Exit Sub

End If

Else

listdetails.SelectedItem.Checked = True

eno = listdetails.SelectedItem.SubItems(4)

If MsgBox(Space(5) & " " & (eno) & "You have to submit bio data", vbYesNo, "O.A. System") = vbYes Then

Call res

Else

listdetails.SelectedItem.Checked = False

Exit Sub

End If

End If

End Sub

Private Sub lst1_Click()


If lst1.ListItems.count = 0 Then

Exit Sub

Else

Dim ctr

ctr = lst1.SelectedItem.SubItems(1)

str = "select * from tbl_place_company where trim(comps_auto_no)= '" & ctr & "'"

If rsSearch1.State = adStateOpen Then

rsSearch1.Close

End If

rsSearch1.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch1.BOF = False Then rsSearch1.MoveFirst

With rsSearch1

If rsSearch1.Fields(0) <> "" Then

txtcno.Text = ctr

End If

If rsSearch1.Fields(1) <> "" Then

txtcid.Text = .Fields(1).VALUE

End If

If rsSearch1.Fields(2) <> "" Then

txtcname.Text = .Fields(2).VALUE

End If

If rsSearch1.Fields(3) <> "" Then

'Text1.Text = .Fields(3).VALUE

DTPdate.VALUE = .Fields(3).VALUE

End If

End With

Exit Sub

End If

End Sub

Private Sub lst2_Click()

If lst2.ListItems.count = 0 Then
Exit Sub

End If

Dim eno

If lst2.SelectedItem.Checked = True Then

lst2.SelectedItem.Checked = False

eno = lst2.SelectedItem.SubItems(5)

If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res3

Else

lst2.SelectedItem.Checked = True

Exit Sub

End If

Else

lst2.SelectedItem.Checked = True

eno = lst2.SelectedItem.SubItems(5)

If MsgBox(Space(5) & "You have to select" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res2

Else

lst2.SelectedItem.Checked = False

Exit Sub

End If

End If

End Sub

Private Sub lst4_click()

If lst4.ListItems.count = 0 Then

Exit Sub

End If

Dim eno

If lst4.SelectedItem.Checked = True Then

lst4.SelectedItem.Checked = False
eno = lst4.SelectedItem.SubItems(4)

If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res7

Else

lst4.SelectedItem.Checked = True

Exit Sub

End If

Else

lst4.SelectedItem.Checked = True

eno = lst4.SelectedItem.SubItems(4)

If MsgBox(Space(5) & "You have to select" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res6

Else

lst4.SelectedItem.Checked = False

Exit Sub

End If

End If

End Sub

Private Sub lst5_click()

If lst5.ListItems.count = 0 Then

Exit Sub

End If

If lst5.ListItems.count = 0 Then

Exit Sub

End If

Dim eno

If lst5.SelectedItem.Checked = True Then

lst5.SelectedItem.Checked = False

eno = lst5.SelectedItem.SubItems(5)

If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res5
Else

lst5.SelectedItem.Checked = True

Exit Sub

End If

Else

lst5.SelectedItem.Checked = True

eno = lst5.SelectedItem.SubItems(5)

If MsgBox(Space(5) & "You have to select" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res4

Else

lst5.SelectedItem.Checked = False

Exit Sub

End If

End If

End Sub

Private Sub lst7_click()

'Dim eno

'If lst7.SelectedItem.Checked = True Then

'eno = lst7.SelectedItem.SubItems(4)

'If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

'Call res

'Else

'Exit Sub

'End If

'Else

'eno = lst7.SelectedItem.SubItems(4)

'If MsgBox(Space(5) & "You have to select" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

'Call res

'Else

'Exit Sub

' End If
' End If

End Sub

Private Sub lst6_click()

If lst6.ListItems.count = 0 Then

Exit Sub

End If

Dim eno

If lst6.SelectedItem.Checked = True Then

lst6.SelectedItem.Checked = False

eno = lst6.SelectedItem.SubItems(4)

If MsgBox(Space(5) & "You have to diselect" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res7a

Else

lst6.SelectedItem.Checked = True

Exit Sub

End If

Else

lst6.SelectedItem.Checked = True

eno = lst6.SelectedItem.SubItems(4)

If MsgBox(Space(5) & "You have to select" & " " & (eno), vbYesNo, "O.A. System") = vbYes Then

Call res6a

Else

lst6.SelectedItem.Checked = False

Exit Sub

End If

End If

End Sub

Private Sub txtcid_Change()


Dim rsSearch As New ADODB.Recordset

Dim item As Single

Dim list As ListItem

If IsEmpty(txtcid) Or txtcid = "" Then

lst1.ListItems.clear

Exit Sub

End If

str = "select *from tbl_place_company where trim(Company_id) like'" & Trim(txtcid.Text) & "%'and type=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With lst1

.ListItems.clear

j=1

While Not rsSearch.EOF

.ListItems.Add(j) = j

If rsSearch(0) <> "" Then

.ListItems(j).SubItems(1) = (rsSearch(0))

End If

If rsSearch(1) <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1)
Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2) <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2)

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3) <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3)

Else

.ListItems(j).SubItems(4) = ""

End If

rsSearch.MoveNext

Wend

End With

End If

End If

End Sub

Private Sub txtcname_Change()

Dim rsSearch As New ADODB.Recordset

Dim item As Single

Dim list As ListItem

If IsEmpty(txtcname) Or txtcname = "" Then

lst1.ListItems.clear

Exit Sub

End If

str = "select *from tbl_place_company where trim(com_name) like'" & Trim(txtcname.Text) & "%'and type=false"

If rsSearch.State = adStateOpen Then


rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then

Else

With lst1

.ListItems.clear

j=1

While Not rsSearch.EOF

.ListItems.Add(j) = j

If rsSearch(0) <> "" Then

.ListItems(j).SubItems(1) = (rsSearch(0))

End If

If rsSearch(1) <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1)

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2) <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2)

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3) <> "" Then


.ListItems(j).SubItems(4) = rsSearch(3)

Else

.ListItems(j).SubItems(4) = ""

End If

rsSearch.MoveNext

Wend

End With

End If

End If

End Sub

Private Sub txtcno_Change()

Dim rsSearch As New ADODB.Recordset

Dim item As Single

Dim list As ListItem

If IsEmpty(txtcno) Or txtcno = "" Then

lst1.ListItems.clear

Exit Sub

End If

str = "select *from tbl_place_company where trim(comps_auto_no) like'" & Trim(txtcno.Text) & "%'and type=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.EOF = True Then

If rsSearch.BOF = True Then

End If

Else

If rsSearch.EOF = False Then

rsSearch.MoveFirst

End If

If rsSearch.EOF = True Then


Else

With lst1

.ListItems.clear

j=1

While Not rsSearch.EOF

.ListItems.Add(j) = j

If rsSearch(0) <> "" Then

.ListItems(j).SubItems(1) = (rsSearch(0))

End If

If rsSearch(1) <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1)

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2) <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2)

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3) <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3)

Else

.ListItems(j).SubItems(4) = ""

End If

rsSearch.MoveNext

Wend

End With

End If

End If

End Sub

Private Sub txtroll_Change()


listdetails.ListItems.clear

lst2.ListItems.clear

j=1

If chk1.VALUE = 1 And chk2.VALUE = 0 Then

MsgBox ("Diselect course at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 0 Then

MsgBox ("Diselect Sem at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 1 Then

MsgBox ("Diselect Course and Sem at first")

Exit Sub

ElseIf chk2.VALUE = 0 And chk1.VALUE = 0 And chk3.VALUE = 1 Then

MsgBox ("Diselect session at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 1 And chk3.VALUE = 1 Then

MsgBox ("Diselect Course,Sem and session at first")

Exit Sub

End If

Dim item As Single

Dim list As ListItem

If IsEmpty(txtroll) Or txtroll = "" Then

listdetails.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_roll) like'" & Trim(txtroll.Text) & "%'and trim(cumpus_no)='"
& Trim(txtcno.Text) & " 'and interested=true and submite_cv=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst


While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else
.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend
frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

Call l1

End Sub

Private Sub txtsearch_Change()

lst2.ListItems.clear

j=1

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsearch) Or txtsearch = "" Then

lst2.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=true"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst2

.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

.ListItems(j).SubItems(1) = "Submit"

Else

.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else
.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(8) = ""
End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Private Sub txtsearch1_Change()

listdetails.ListItems.clear

j=1

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsearch1) Or txtsearch1 = "" Then

listdetails.ListItems.clear
Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch1.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If
If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then


.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'Call la1

End Sub

Public Sub subcv()

j=1

lst4.ListItems.clear

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where and trim(comp_name)='" & Trim(txtcname.Text) & "'and
trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and submite_cv=true ", con,
adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

If rs.BOF And rs.EOF Then

Exit Sub

End If

While rs.EOF = False

With lst4

.ListItems.Add(j) = j

If rs(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rs(1).VALUE

Else
.ListItems(j).SubItems(1) = ""

End If

If rs(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rs(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rs(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rs(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rs(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rs(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rs(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rs(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rs(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rs(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rs(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rs(7).VALUE

Else

.ListItems(j).SubItems(7) = ""
End If

If rs(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rs(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rs(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rs(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rs(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rs(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

rs.MoveNext

j=j+1

End With

Wend

frmattend.Caption = "Attend Student are:" & "" & j - 1

End Sub

Public Sub back()

j=1

k=1

str = lst2.SelectedItem.SubItems(4)

For j = j To lst5.ListItems.count

If str = lst2.ListItems(j).SubItems(4) Then

If lst5.ListItems(j).SubItems(1) = "not submit" Then

If MsgBox(Space(1) & "you have not submited your bio data you have to submit your bio data", vbYesNo, "O.A.
System") = vbYes Then

If rs.State = adStateOpen Then


rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = True

rs.Update

Else

Exit Sub

End If

End If

End If

Next

If lst2.SelectedItem.SubItems(4) <> "" Then

str = lst2.SelectedItem.SubItems(4)

If lst2.SelectedItem.Checked = False Then

lst2.SelectedItem.Checked = True

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = True

rs.Update

Call List4

Else

lst2.SelectedItem.Checked = False

If rs.State = adStateOpen Then

rs.Close

End If
rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = False

rs.Update

Call List4

Exit Sub

End If

Else

str = lst2.SelectedItem.SubItems(3)

If lst2.SelectedItem.Checked = False Then

lst2.SelectedItem.Checked = True

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = True

rs.Update

lst5.ListItems.clear

Call List4

Exit Sub

Else

lst2.SelectedItem.Checked = False

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = False

rs.Update

Call List4
Exit Sub

End If

End If

End Sub

Public Sub back1()

j=1

k=1

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "delete *from tbl_std_selection_tbl", con, adOpenDynamic, adLockOptimistic

tmp.Open "select *from tbl_std_selection_tbl", con, adOpenDynamic, adLockOptimistic

If lst5.SelectedItem.SubItems(1) = "not submit" Then

If MsgBox(Space(1) & "you have not submited your bio data you have to submit your bio data", vbYesNo, "O.A.
System") = vbYes Then

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = True

rs.Update

Else

Exit Sub

End If

Else

i=1

Dim nm

nm = lst5.SelectedItem.SubItems(5)

str = lst5.SelectedItem.SubItems(4)
For i = i To lst4.ListItems.count

If str = lst4.ListItems(i).SubItems(3) Then

MsgBox (nm & " " & " you already atend the interview")

Exit Sub

End If

Next

If lst5.SelectedItem.SubItems(4) <> "" Then

str = lst5.SelectedItem.SubItems(4)

If lst5.SelectedItem.Checked = False Then

lst5.SelectedItem.Checked = True

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = True

rs.Update

Else

lst5.SelectedItem.Checked = False

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = False

rs.Update

Exit Sub

End If

Else
str = lst2.SelectedItem.SubItems(3)

If lst2.SelectedItem.Checked = False Then

lst2.SelectedItem.Checked = True

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = True

rs.Update

lst5.ListItems.clear

Exit Sub

Else

lst2.SelectedItem.Checked = False

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(comp_name)='" &
Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and
interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = False

rs.Update

Exit Sub

End If

End If

End If

End Sub

Public Sub link()

If tmp.State = adStateOpen Then

tmp.Close

End If
tmp.Open "select *from tbl_std_selection_tbl where type1=true", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

k=1

lst4.ListItems.clear

If tmp.BOF = False Then tmp.MoveFirst

While tmp.EOF = False

lst4.ListItems.Add(k) = k

If tmp(0).VALUE <> "" Then

lst4.ListItems(k).SubItems(1) = tmp(0)

Else

lst4.ListItems(k).SubItems(1) = ""

End If

If tmp(1).VALUE <> "" Then

lst4.ListItems(k).SubItems(2) = tmp(1)

Else

lst4.ListItems(k).SubItems(2) = ""

End If

If tmp(2).VALUE <> "" Then

lst4.ListItems(k).SubItems(3) = tmp(2)

Else

lst4.ListItems(k).SubItems(3) = ""

End If

If tmp(3).VALUE <> "" Then

lst4.ListItems(k).SubItems(4) = tmp(3)

Else

lst4.ListItems(k).SubItems(4) = ""

End If

If tmp(4).VALUE <> "" Then

lst4.ListItems(k).SubItems(5) = tmp(4)

Else

lst4.ListItems(k).SubItems(5) = ""
End If

If tmp(5).VALUE <> "" Then

lst4.ListItems(k).SubItems(6) = tmp(5)

Else

lst4.ListItems(k).SubItems(6) = ""

End If

If tmp(6).VALUE <> "" Then

lst4.ListItems(k).SubItems(7) = tmp(6)

Else

lst4.ListItems(k).SubItems(7) = ""

End If

If tmp(7).VALUE <> "" Then

lst4.ListItems(k).SubItems(8) = tmp(7)

Else

lst4.ListItems(k).SubItems(8) = ""

End If

If tmp(8).VALUE <> "" Then

lst4.ListItems(k).SubItems(9) = tmp(8)

Else

lst4.ListItems(k).SubItems(9) = ""

End If

If tmp(9).VALUE <> "" Then

lst4.ListItems(k).SubItems(10) = tmp(9)

Else

lst4.ListItems(k).SubItems(10) = ""

End If

tmp.MoveNext

k=k+1

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"
frmattend.Caption = frmattend.Caption & " " & k - 1 & ")"

End Sub

Public Sub back2()

j=1

k=1

i=1

Dim nm

nm = lst4.SelectedItem.SubItems(4)

str = lst4.SelectedItem.SubItems(3)

For i = i To lst3.ListItems.count

If str = lst3.ListItems(i).SubItems(3) Then

MsgBox (nm & " " & " you already selected")

Exit Sub

End If

Next

If tmp.State = adStateOpen Then

tmp.Close

End If

If lst4.SelectedItem.SubItems(3) <> "" Then

str = lst4.SelectedItem.SubItems(3)

If lst4.SelectedItem.Checked = False Then

lst4.SelectedItem.Checked = True

tmp.Open "select *from tbl_std_selection_tbl where trim(roll)='" & (str) & "'", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

tmp(10).VALUE = True

tmp.Update

Call link1

Else

lst4.SelectedItem.Checked = False

If tmp.State = adStateOpen Then

tmp.Close
End If

tmp.Open "select *from tbl_std_selection_tbl where trim(roll)='" & (str) & "'", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

tmp(10).VALUE = False

tmp.Update

Call link1

End If

Else

str = lst4.SelectedItem.SubItems(2)

If lst4.SelectedItem.Checked = False Then

lst4.SelectedItem.Checked = True

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "select *from tbl_std_selection_tbl where trim(app_no)='" & (str) & "'", con, adOpenDynamic,
adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

tmp(10).VALUE = True

tmp.Update

Call link1

Else

lst4.SelectedItem.Checked = False

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "select *from tbl_std_selection_tbl where trim(app_no)='" & (str) & "'", con, adOpenDynamic,
adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

tmp(10).VALUE = False

tmp.Update

Call link1

End If
End If

End Sub

Public Sub link1()

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "select *from tbl_std_selection_tbl where type=true", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

k=1

lst3.ListItems.clear

'Call attend

While tmp.EOF = False

lst3.ListItems.Add(k) = k

If tmp(0).VALUE <> "" Then

lst3.ListItems(k).SubItems(1) = tmp(0)

Else

lst3.ListItems(k).SubItems(1) = ""

End If

If tmp(1).VALUE <> "" Then

lst3.ListItems(k).SubItems(2) = tmp(1)

Else

lst3.ListItems(k).SubItems(2) = ""

End If

If tmp(2).VALUE <> "" Then

lst3.ListItems(k).SubItems(3) = tmp(2)

Else

lst3.ListItems(k).SubItems(3) = ""

End If

If tmp(3).VALUE <> "" Then

lst3.ListItems(k).SubItems(4) = tmp(3)

Else
lst3.ListItems(k).SubItems(4) = ""

End If

If tmp(4).VALUE <> "" Then

lst3.ListItems(k).SubItems(5) = tmp(4)

Else

lst3.ListItems(k).SubItems(5) = ""

End If

If tmp(5).VALUE <> "" Then

lst3.ListItems(k).SubItems(6) = tmp(5)

Else

lst3.ListItems(k).SubItems(6) = ""

End If

If tmp(6).VALUE <> "" Then

lst3.ListItems(k).SubItems(7) = tmp(6)

Else

lst3.ListItems(k).SubItems(7) = ""

End If

If tmp(7).VALUE <> "" Then

lst3.ListItems(k).SubItems(8) = tmp(7)

Else

lst3.ListItems(k).SubItems(8) = ""

End If

If tmp(8).VALUE <> "" Then

lst3.ListItems(k).SubItems(9) = tmp(8)

Else

lst3.ListItems(k).SubItems(9) = ""

End If

If tmp(9).VALUE <> "" Then

lst3.ListItems(k).SubItems(10) = tmp(9)

Else

lst3.ListItems(k).SubItems(10) = ""
End If

tmp.MoveNext

k=k+1

Wend

listof_select.Caption = ""

listof_select.Caption = "(List of all selected student :"

listof_select.Caption = listof_select.Caption & "" & k - 1 & ")"

End Sub

Public Sub listp()

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "select *from tbl_std_selection_tbl where type1=true", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

k=1

lst4.ListItems.clear

'Call attend

If tmp.BOF = False Then tmp.MoveFirst

While tmp.EOF = False

lst4.ListItems.Add(k) = k

If tmp(0).VALUE <> "" Then

lst4.ListItems(k).SubItems(1) = tmp(0)

Else

lst4.ListItems(k).SubItems(1) = ""

End If

If tmp(1).VALUE <> "" Then

lst4.ListItems(k).SubItems(2) = tmp(1)

Else

lst4.ListItems(k).SubItems(2) = ""

End If

If tmp(2).VALUE <> "" Then


lst4.ListItems(k).SubItems(3) = tmp(2)

Else

lst4.ListItems(k).SubItems(3) = ""

End If

If tmp(3).VALUE <> "" Then

lst4.ListItems(k).SubItems(4) = tmp(3)

Else

lst4.ListItems(k).SubItems(4) = ""

End If

If tmp(4).VALUE <> "" Then

lst4.ListItems(k).SubItems(5) = tmp(4)

Else

lst4.ListItems(k).SubItems(5) = ""

End If

If tmp(5).VALUE <> "" Then

lst4.ListItems(k).SubItems(6) = tmp(5)

Else

lst4.ListItems(k).SubItems(6) = ""

End If

If tmp(6).VALUE <> "" Then

lst4.ListItems(k).SubItems(7) = tmp(6)

Else

lst4.ListItems(k).SubItems(7) = ""

End If

If tmp(7).VALUE <> "" Then

lst4.ListItems(k).SubItems(8) = tmp(7)

Else

lst4.ListItems(k).SubItems(8) = ""

End If

If tmp(8).VALUE <> "" Then

lst4.ListItems(k).SubItems(9) = tmp(8)
Else

lst4.ListItems(k).SubItems(9) = ""

End If

If tmp(9).VALUE <> "" Then

lst4.ListItems(k).SubItems(10) = tmp(9)

Else

lst4.ListItems(k).SubItems(10) = ""

End If

tmp.MoveNext

k=k+1

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & k - 1 & ")"

End Sub

Public Sub listp1()

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "select *from tbl_std_selection_tbl where type2=true", con, adOpenDynamic, adLockOptimistic

If tmp.BOF = False Then tmp.MoveFirst

k=1

lst3.ListItems.clear

'Call attend

If tmp.BOF = False Then tmp.MoveFirst

While tmp.EOF = False

lst3.ListItems.Add(k) = k

If tmp(0).VALUE <> "" Then

lst3.ListItems(k).SubItems(1) = tmp(0)

Else

lst3.ListItems(k).SubItems(1) = ""
End If

If tmp(1).VALUE <> "" Then

lst3.ListItems(k).SubItems(2) = tmp(1)

Else

lst3.ListItems(k).SubItems(2) = ""

End If

If tmp(2).VALUE <> "" Then

lst3.ListItems(k).SubItems(3) = tmp(2)

Else

lst3.ListItems(k).SubItems(3) = ""

End If

If tmp(3).VALUE <> "" Then

lst3.ListItems(k).SubItems(4) = tmp(3)

Else

lst3.ListItems(k).SubItems(4) = ""

End If

If tmp(4).VALUE <> "" Then

lst3.ListItems(k).SubItems(5) = tmp(4)

Else

lst3.ListItems(k).SubItems(5) = ""

End If

If tmp(5).VALUE <> "" Then

lst3.ListItems(k).SubItems(6) = tmp(5)

Else

lst3.ListItems(k).SubItems(6) = ""

End If

If tmp(6).VALUE <> "" Then

lst3.ListItems(k).SubItems(7) = tmp(6)

Else

lst3.ListItems(k).SubItems(7) = ""

End If
If tmp(7).VALUE <> "" Then

lst3.ListItems(k).SubItems(8) = tmp(7)

Else

lst3.ListItems(k).SubItems(8) = ""

End If

If tmp(8).VALUE <> "" Then

lst3.ListItems(k).SubItems(9) = tmp(8)

Else

lst3.ListItems(k).SubItems(9) = ""

End If

If tmp(9).VALUE <> "" Then

lst3.ListItems(k).SubItems(10) = tmp(9)

Else

lst3.ListItems(k).SubItems(10) = ""

End If

tmp.MoveNext

k=k+1

Wend

listof_select.Caption = ""

listof_select.Caption = "(List of all selected student :"

listof_select.Caption = listof_select.Caption & "" & k - 1 & ")"

End Sub

Public Sub list2()

chkall.VALUE = 0

MsgBox ("h1")

lst2.ListItems.clear

If tmp.State = adStateOpen Then

tmp.Close

End If

tmp.Open "delete *from tbl_std_selection_tbl", con, adOpenDynamic, adLockOptimistic

tmp.Open "select *from tbl_std_selection_tbl", con, adOpenDynamic, adLockOptimistic


j=1

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(comp_name)='" & Trim(txtcname.Text) & "'and
trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and interested=true and
submite_cv=false", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

If rs.BOF And rs.EOF Then

MsgBox ("Either company name wrong or date is wrong please try again")

Exit Sub

End If

While rs.EOF = False

tmp.AddNew

lst2.ListItems.Add(j) = j

If rs(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(1) = rs(1).VALUE

tmp(0).VALUE = rs(1).VALUE

Else

lst2.ListItems(j).SubItems(1) = ""

End If

If rs(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rs(2).VALUE

tmp(1).VALUE = rs(2).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rs(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rs(3).VALUE

tmp(2).VALUE = rs(3).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""
End If

If rs(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rs(4).VALUE

tmp(3).VALUE = rs(4).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rs(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rs(5).VALUE

tmp(4).VALUE = rs(5).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rs(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rs(6).VALUE

tmp(5).VALUE = rs(6).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rs(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rs(7).VALUE

tmp(6).VALUE = rs(7).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rs(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rs(8).VALUE

tmp(7).VALUE = rs(8).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If
If rs(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rs(9).VALUE

tmp(8).VALUE = rs(9).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rs(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rs(10).VALUE

tmp(9).VALUE = rs(10).VALUE

tmp(10).VALUE = False

Else

lst2.ListItems(j).SubItems(10) = ""

End If

j=j+1

rs.MoveNext

tmp.Update

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of interested student :"

frmlist_in.Caption = frmlist_in.Caption & "" & j - 1 & ")"

End Sub

Public Sub prn1()

Dim EX As New Application

Dim Book As Workbook

Dim Sheet As Worksheet

Set EX = CreateObject("Excel.Application")

Set Book = EX.Workbooks.Add

Set Sheet = Book.Sheets(1)

With Sheet

EX.Cells(1, 1) = "App_No"
EX.Cells(1, 2) = "Interview Id"

EX.Cells(1, 3) = "Roll No"

EX.Cells(1, 4) = "Name"

EX.Cells(1, 5) = "F'name"

EX.Cells(1, 6) = "Course"

EX.Cells(1, 7) = "Semester"

EX.Cells(1, 8) = "Session"

EX.Cells(1, 9) = "Mobile1"

EX.Cells(1, 10) = "Mobile2"

i=1

For i = i To lst5.ListItems.count

EX.Cells(i + 1, 1) = lst5.ListItems(i).SubItems(3)

EX.Cells(i + 1, 2) = lst5.ListItems(i).SubItems(2)

EX.Cells(i + 1, 3) = lst5.ListItems(i).SubItems(4)

EX.Cells(i + 1, 4) = lst5.ListItems(i).SubItems(5)

EX.Cells(i + 1, 5) = lst5.ListItems(i).SubItems(6)

EX.Cells(i + 1, 6) = lst5.ListItems(i).SubItems(7)

EX.Cells(i + 1, 7) = lst5.ListItems(i).SubItems(8)

EX.Cells(i + 1, 8) = lst5.ListItems(i).SubItems(9)

EX.Cells(i + 1, 9) = lst5.ListItems(i).SubItems(10)

EX.Cells(i + 1, 10) = lst5.ListItems(i).SubItems(11)

Next

EX.Visible = True

Sheet.Columns.Cells.ColumnWidth = 12

Sheet.Activate

End With

End Sub

Public Sub showall()

j=1
While rs.EOF = False

lst2.ListItems.Add(j) = j

If rs(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(1) = rs(1).VALUE

Else

lst2.ListItems(j).SubItems(1) = ""

End If

If rs(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rs(2).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rs(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rs(3).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rs(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rs(4).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rs(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rs(5).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rs(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rs(6).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""
End If

If rs(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rs(7).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rs(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rs(8).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rs(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rs(9).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rs(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rs(10).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

rs.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of interested student :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub showall1()

j=1

While rs.EOF = False


lst5.ListItems.Add(j) = j

If rs(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(1) = rs(1).VALUE

Else

lst5.ListItems(j).SubItems(1) = ""

End If

If rs(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rs(2).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rs(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rs(3).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rs(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rs(4).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rs(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rs(5).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rs(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rs(6).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If
If rs(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rs(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rs(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rs(8).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rs(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rs(9).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rs(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rs(10).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

rs.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student :"

listof_pre.Caption = listof_pre.Caption & " " & k - 1 & ")"

End Sub

Public Sub showall2()

j=1

While rs.EOF = False

lst4.ListItems.Add(j) = j
If rs(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rs(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rs(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rs(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rs(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rs(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rs(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rs(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rs(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rs(5).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rs(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rs(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rs(7).VALUE <> "" Then


lst4.ListItems(j).SubItems(7) = rs(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rs(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rs(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rs(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rs(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rs(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rs(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

rs.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & k - 1 & ")"

End Sub

Public Sub res()

j=1

k=1

If listdetails.SelectedItem.SubItems(2) <> "" Then

str = listdetails.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then


rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = True

rs.Update

lst2.ListItems.clear

listdetails.ListItems.clear

Call data

Else

str = listdetails.SelectedItem.SubItems(1)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = True

rs.Update

lst2.ListItems.clear

listdetails.ListItems.clear

Call data

'*****************************************

MsgBox ("Cv submited succesfully")

Exit Sub

End If

End Sub

'Public Sub stdcv()

'If rs.State = adStateOpen Then

'rs.Close

'End If
'rs.Open "select *from tbl_interested_student where trim(comp_name)='" & Trim(txtcname.Text) & "'and
trim(compus_date)=#" & Trim(Format(DTPdate.VALUE, "mm/dd/yyyy")) & "# and interested=true and
submite_cv=false", con, adOpenDynamic, adLockOptimistic

'If rs.BOF = False Then rs.MoveFirst

'If rs.BOF And rs.EOF Then

'MsgBox ("Either company name wrong or date is wrong please try again")

'Exit Sub

'End If

'While rs.EOF = False

'tmp.AddNew

'lst2.ListItems.Add(j) = j

'If rs(16).VALUE = True Then

'lst2.ListItems(j).SubItems(1) = "submit"

'tmp(1).VALUE = True

'Else

'lst2.ListItems(j).SubItems(1) = "not submit"

'End If

'If rs(1).VALUE <> "" Then

'lst2.ListItems(j).SubItems(2) = rs(1).VALUE

'tmp(0).VALUE = rs(1).VALUE

'Else

'lst2.ListItems(j).SubItems(2) = ""

'End If

'If rs(2).VALUE <> "" Then

'lst2.ListItems(j).SubItems(3) = rs(2).VALUE

'tmp(2).VALUE = rs(2).VALUE

'Else

'lst2.ListItems(j).SubItems(3) = ""

'End If

'If rs(3).VALUE <> "" Then

'lst2.ListItems(j).SubItems(4) = rs(3).VALUE

'tmp(3).VALUE = rs(3).VALUE
'Else

'lst2.ListItems(j).SubItems(4) = ""

'End If

'If rs(4).VALUE <> "" Then

'lst2.ListItems(j).SubItems(5) = rs(4).VALUE

'tmp(4).VALUE = rs(4).VALUE

'Else

'lst2.ListItems(j).SubItems(5) = ""

'End If

'If rs(5).VALUE <> "" Then

'lst2.ListItems(j).SubItems(6) = rs(5).VALUE

'tmp(5).VALUE = rs(5).VALUE

'Else

'lst2.ListItems(j).SubItems(6) = ""

'End If

'If rs(6).VALUE <> "" Then

'lst2.ListItems(j).SubItems(7) = rs(6).VALUE

'tmp(6).VALUE = rs(6).VALUE

'Else

'lst2.ListItems(j).SubItems(7) = ""

'End If

'If rs(7).VALUE <> "" Then

'lst2.ListItems(j).SubItems(8) = rs(7).VALUE

'tmp(7).VALUE = rs(7).VALUE

'Else

'lst2.ListItems(j).SubItems(8) = ""

'End If

'If rs(8).VALUE <> "" Then

'lst2.ListItems(j).SubItems(9) = rs(8).VALUE

'tmp(8).VALUE = rs(8).VALUE

'Else
'lst2.ListItems(j).SubItems(9) = ""

'End If

'If rs(9).VALUE <> "" Then

'lst2.ListItems(j).SubItems(10) = rs(9).VALUE

'tmp(9).VALUE = rs(9).VALUE

'Else

'lst2.ListItems(j).SubItems(10) = ""

'End If

'If rs(10).VALUE <> "" Then

'lst2.ListItems(j).SubItems(11) = rs(10).VALUE

'tmp(10).VALUE = rs(10).VALUE

'tmp(11).VALUE = False

'tmp(12).VALUE = False

'Else

'lst2.ListItems(j).SubItems(11) = ""

'End If

'j = j + 1

'rs.MOVENEXT

'tmp.Update

'Wend

'frmlist_in.Caption = ""

'frmlist_in.Caption = "(List of interested student :"

'frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'Exit Sub

'End If

'End Sub

Public Sub List4()

k=1

lst5.ListItems.clear

If rs.State = adStateOpen Then

rs.Close
End If

rs.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "'and
trim(comp_name)='" & Trim(txtcname.Text) & "'and trim(compus_date)=#" & Trim(Format(DTPdate.VALUE,
"mm/dd/yyyy")) & "# and interested=true and submite_cv=true or std_cv=true", con, adOpenDynamic,
adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

While rs.EOF = False

lst5.ListItems.Add(k) = k

If rs(16).VALUE = True Then

lst5.ListItems(k).SubItems(1) = "submit"

Else

lst5.ListItems(k).SubItems(1) = "not submit"

End If

If rs(1).VALUE <> "" Then

lst5.ListItems(k).SubItems(2) = rs(1)

Else

lst5.ListItems(k).SubItems(2) = ""

End If

If rs(2).VALUE <> "" Then

lst5.ListItems(k).SubItems(3) = rs(2)

Else

lst5.ListItems(k).SubItems(3) = ""

End If

If rs(3).VALUE <> "" Then

lst5.ListItems(k).SubItems(4) = rs(3)

Else

lst5.ListItems(k).SubItems(4) = ""

End If

If rs(4).VALUE <> "" Then

lst5.ListItems(k).SubItems(5) = rs(4)

Else

lst5.ListItems(k).SubItems(5) = ""

End If
If rs(5).VALUE <> "" Then

lst5.ListItems(k).SubItems(6) = rs(5)

Else

lst5.ListItems(k).SubItems(6) = ""

End If

If rs(6).VALUE <> "" Then

lst5.ListItems(k).SubItems(7) = rs(6)

Else

lst5.ListItems(k).SubItems(7) = ""

End If

If rs(7).VALUE <> "" Then

lst5.ListItems(k).SubItems(8) = rs(7)

Else

lst5.ListItems(k).SubItems(8) = ""

End If

If rs(8).VALUE <> "" Then

lst5.ListItems(k).SubItems(9) = rs(8)

Else

lst5.ListItems(k).SubItems(9) = ""

End If

If rs(9).VALUE <> "" Then

lst5.ListItems(k).SubItems(10) = rs(9)

Else

lst5.ListItems(k).SubItems(10) = ""

End If

If rs(10).VALUE <> "" Then

lst5.ListItems(k).SubItems(11) = rs(10)

Else

lst5.ListItems(k).SubItems(11) = ""

End If

rs.MoveNext
k=k+1

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student :"

listof_pre.Caption = listof_pre.Caption & " " & k - 1 & ")"

End Sub

Public Sub c1()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(17).VALUE = True Then

'lst2.ListItems(j).Checked = True

'Else

'lst2.ListItems(j).Checked = False

'End If

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If
If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then


lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j
If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then


.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"


'***************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then


lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE
Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(19).VALUE = True Then

'lst4.ListItems(j).Checked = True

'Else

'lst4.ListItems(j).Checked = False

'End If

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then


lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE
Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then


lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"


'******************************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and type=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If
If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1
rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub c2()

listdetails.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(17).VALUE = True Then

'lst2.ListItems(j).Checked = True

'Else

'lst2.ListItems(j).Checked = False

'End If

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""
End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If
If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=false", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False


With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""
End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""
frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'****************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else
lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""
End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(19).VALUE = True Then

'lst4.ListItems(j).Checked = True

'Else

'lst4.ListItems(j).Checked = False
'End If

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""
End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then


rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""
End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"
frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'******************************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE
Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else
lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub c3()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If
If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then


lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "'and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails
.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If
If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"
frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""
End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If
If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""
End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If
If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""
End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If
If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'*****************************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true and attend_interview=true and type=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst


While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""
End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub c4()

lst2.ListItems.clear
j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE
Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else
lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=false", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then


.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE
Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'*******************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j
If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then


lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************
j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then


lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext
Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then


lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE
Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'********************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "' and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If
If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then


lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub c5()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "'and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"


End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If
If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close
End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""
End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If
j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'**********************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else
lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""
End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "'and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else
lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""
End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst


While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""
End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'*******************************

j=1

lst3.ListItems.clear
If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "'and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and type=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else
lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""
listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub res1()

j=1

k=1

If listdetails.SelectedItem.SubItems(2) <> "" Then

str = listdetails.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = False

rs.Update

lst2.ListItems.clear

listdetails.ListItems.clear

Else

str = listdetails.SelectedItem.SubItems(1)

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true ", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(16).VALUE = False

rs.Update

lst2.ListItems.clear

listdetails.ListItems.clear

'*****************************************

Exit Sub

End If

End Sub
Public Sub check()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc1

Exit Sub

End If

'*****************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc2

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc3

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc6

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc7

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc8

Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc4

Exit Sub
End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc5

Exit Sub

End If

End Sub

Public Sub res2()

j=1

k=1

If lst2.SelectedItem.SubItems(4) <> "" Then

str = lst2.SelectedItem.SubItems(4)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = True

rs.Update

lst5.ListItems.clear

Call check

Else

str = lst2.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = True

rs.Update
lst5.ListItems.clear

Call check

'*****************************************

Exit Sub

End If

End Sub

Public Sub Check1()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc1a

Exit Sub

End If

'*****************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc2a

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc3a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc6a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc7a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc8a
Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc4a

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc5a

Exit Sub

End If

End Sub

Public Sub paten1()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE
Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else
lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten2()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If
If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1
rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten3()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else
lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""
End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten4()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "'and trim(std_session)='" & Trim(combsession.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then


lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE
Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten5()


lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & " 'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If
If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then


lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub l1()

j=1

lst2.ListItems.clear

str = "select *from tbl_interested_student where trim(std_roll) like'" & Trim(txtroll.Text) & "%'and trim(cumpus_no)='"
& Trim(txtcno.Text) & " 'and interested=true and submite_cv=true"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

If rsSearch.BOF And rsSearch.EOF Then

MsgBox ("No student has submited thier bio data")

Exit Sub

End If

While rsSearch.EOF = False

With lst2

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

.ListItems(j).SubItems(1) = "Submit"

Else

.ListItems(j).SubItems(1) = "Not Submit"


End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If
If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

End With

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub la1()

j=1

lst2.ListItems.clear
str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsname.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " 'and interested=true and submite_cv=true"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst2

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

.ListItems(j).SubItems(1) = "Submit"

Else

.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(4).VALUE
Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else
.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub res3()

j=1

k=1

If lst2.SelectedItem.SubItems(4) <> "" Then

str = lst2.SelectedItem.SubItems(4)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = False

rs.Update

lst5.ListItems.clear

Call check

Else

str = lst2.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic
If rs.BOF = False Then rs.MoveFirst

rs(17).VALUE = False

rs.Update

lst5.ListItems.clear

Call check

'*****************************************

Exit Sub

End If

End Sub

Public Sub res4()

j=1

k=1

If lst5.SelectedItem.SubItems(4) <> "" Then

str = lst5.SelectedItem.SubItems(4)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(18).VALUE = True

rs.Update

lst4.ListItems.clear

Call Check2

Else

str = lst5.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst


rs(18).VALUE = True

rs.Update

lst4.ListItems.clear

Call Check2

'*****************************************

Exit Sub

End If

End Sub

Public Sub res5()

j=1

k=1

If lst5.SelectedItem.SubItems(4) <> "" Then

str = lst5.SelectedItem.SubItems(4)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(18).VALUE = False

rs.Update

lst4.ListItems.clear

Call Check2

Else

str = lst5.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst


rs(18).VALUE = False

rs.Update

lst4.ListItems.clear

Call Check2

'*****************************************

Exit Sub

End If

End Sub

Public Sub Check2()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call paten1a

Exit Sub

End If

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call paten2a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call paten6a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call paten7a

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call paten8a

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then
Call paten3a

Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call paten4a

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call paten5a

Exit Sub

End If

End Sub

Public Sub paten1a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then


lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE
Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten2a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False


lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If
If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten3a()

j=1

lst4.ListItems.clear
If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)='" & Trim(txtsem.Text) & "'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else
lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""
frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten4a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)='" & Trim(txtsem.Text) & "'and trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then


lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE
Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten5a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""
End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If
If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub c6()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"
Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else
lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear
If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=false", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE
Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else
.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'**********************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then


lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE
Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then


lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE
Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then


lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"


'*****************************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If
If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1
rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub c7()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""
End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If
If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=false", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else
.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""
End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'**********************

j=1

lst5.ListItems.clear
If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else
lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""
End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else
lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""
End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'********************************8

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & "' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE
Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else
lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

'***************************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and type=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE
Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else
lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub c8()

lst2.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst2.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst2.ListItems(j).SubItems(1) = "Submit"

Else

lst2.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst2.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst2.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst2.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst2.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst2.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst2.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst2.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst2.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then


lst2.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst2.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst2.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst2.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst2.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst2.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst2.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst2.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst2.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst2.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst2.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst2.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext
Wend

frmlist_in.Caption = ""

frmlist_in.Caption = "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

'**********************************

j=1

listdetails.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If
If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then


.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

'*******************

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"


End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If
If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

'************************************

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close
End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If
If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"


'***************************

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=false", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst6.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst6.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst6.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst6.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst6.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst6.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst6.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst6.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst6.ListItems(j).SubItems(4) = ""

End If
If rsSearch(5).VALUE <> "" Then

lst6.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst6.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst6.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst6.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst6.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst6.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst6.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst6.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst6.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst6.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst6.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst6.ListItems(j).SubItems(10) = ""

End If

j=j+1
rsSearch.MoveNext

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

'****************

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "' and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and type=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst3.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst3.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst3.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst3.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst3.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst3.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst3.ListItems(j).SubItems(3) = ""

End If
If rsSearch(4).VALUE <> "" Then

lst3.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst3.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst3.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst3.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst3.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst3.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst3.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst3.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst3.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst3.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst3.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst3.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then


lst3.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst3.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all Selected student:"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten6()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else
lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""
End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten7()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & "' and
trim(std_sem)='" & Trim(txtsem.Text) & "'and trim(std_session)='" & Trim(combsession.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic
If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE
Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend
frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub paten8()

lst5.ListItems.clear

j=1

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "'and
trim(std_session)='" & Trim(combsession.Text) & " 'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

rsSearch.MoveFirst

While rsSearch.EOF = False

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If
If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then


lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmlist_in.Caption = ""

frmlist_in.Caption = frmlist_in.Caption & " " & "(List of all interested student with cv :"

frmlist_in.Caption = frmlist_in.Caption & " " & j - 1 & ")"

End Sub

Public Sub data()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c1

Exit Sub

End If

'*****************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c2

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c3

Exit Sub

End If
If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c6

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c7

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c8

Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c4

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c5

Exit Sub

End If

End Sub

Public Sub Check4()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c1

Exit Sub

End If

'*****************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c2
Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c3

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call c6

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c7

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c8

Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c4

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call c5

Exit Sub

End If

End Sub
Public Sub nmsearch()

j=1

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsearch1) Or txtsearch1 = "" Then

listdetails.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch1.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else
.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""
End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

End Sub

Private Sub txtsearch2_Change()

lst5.ListItems.clear

j=1

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsearch2) Or txtsearch2 = "" Then

lst5.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch2.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=true and ph_interview=true"

If rsSearch.State = adStateOpen Then


rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst5

.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

.ListItems(j).SubItems(1) = "Submit"

Else

.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(5) = ""
End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If
j=j+1

rsSearch.MoveNext

End With

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "( List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Private Sub txtsearch3_Change()

lst4.ListItems.clear

j=1

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsearch3) Or txtsearch3 = "" Then

lst4.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch3.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst4

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE
Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else
.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "( List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

End Sub

Private Sub txtsearch4_Change()

lst6.ListItems.clear

j=1

Dim item As Single

Dim list As ListItem


If IsEmpty(txtsearch4) Or txtsearch4 = "" Then

lst6.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsearch4.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " ' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE
Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else
.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Private Sub txtsname_Change()

listdetails.ListItems.clear

lst2.ListItems.clear

j=1

If chk1.VALUE = 1 And chk2.VALUE = 0 Then

MsgBox ("Diselect course at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 0 Then

MsgBox ("Diselect Sem at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 1 Then

MsgBox ("Diselect Course and Sem at first")

Exit Sub

ElseIf chk2.VALUE = 0 And chk1.VALUE = 0 And chk3.VALUE = 1 Then

MsgBox ("Diselect session at first")

Exit Sub

ElseIf chk2.VALUE = 1 And chk1.VALUE = 1 And chk3.VALUE = 1 Then

MsgBox ("Diselect Course,Sem and session at first")

Exit Sub
End If

Dim item As Single

Dim list As ListItem

If IsEmpty(txtsname) Or txtsname = "" Then

listdetails.ListItems.clear

Exit Sub

End If

str = "select *from tbl_interested_student where trim(std_name) like'" & Trim(txtsname.Text) & "%'and
trim(cumpus_no)='" & Trim(txtcno.Text) & " 'and interested=true and submite_cv=false"

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open str, con, adOpenKeyset, adLockPessimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With listdetails

.ListItems.Add(j) = j

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If
If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then


.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

If rsSearch(12).VALUE <> "" Then

.ListItems(j).SubItems(11) = rsSearch(12).VALUE

Else

.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmstd.Caption = ""

frmstd.Caption = frmstd.Caption & " " & "(List of all interested student without cv :"

frmstd.Caption = frmstd.Caption & " " & j - 1 & ")"

Call la1

End Sub

Public Sub res6()

j=1

k=1

If lst4.SelectedItem.SubItems(3) <> "" Then

str = lst4.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true and ph_interview=true and attend_interview=true ",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = True
rs.Update

lst6.ListItems.clear

Call Check1

Else

str = lst4.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and attend_interview=true ",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = True

rs.Update

lst6.ListItems.clear

Call Check1

'*****************************************

Exit Sub

End If

End Sub

Public Sub res7()

j=1

k=1

If lst4.SelectedItem.SubItems(3) <> "" Then

str = lst4.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true and ph_interview=true and attend_interview=true",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst


rs(19).VALUE = False

rs.Update

lst6.ListItems.clear

Call Check1

Else

str = lst4.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and attend_interview=true",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(19).VALUE = False

rs.Update

lst6.ListItems.clear

Call Check1

'*****************************************

Exit Sub

End If

End Sub

Public Sub paten6a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j
If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then


lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten7a()

j=1
lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE
Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend
frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub paten8a()

j=1

lst4.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & "'and
trim(std_session)='" & Trim(combsession.Text) & "' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

lst4.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

lst4.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

lst4.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst4.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

lst4.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst4.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

lst4.ListItems(j).SubItems(3) = ""

End If
If rsSearch(4).VALUE <> "" Then

lst4.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

lst4.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst4.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

lst4.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst4.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

lst4.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst4.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst4.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst4.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

lst4.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst4.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

lst4.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then


lst4.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

lst4.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

frmattend.Caption = ""

frmattend.Caption = frmattend.Caption & " " & "(List of all attended student:"

frmattend.Caption = frmattend.Caption & " " & j - 1 & ")"

Exit Sub

End Sub

Public Sub cc1()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"


End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If
If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc2()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then


rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""
End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If
If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc3()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)='" & Trim(txtsem.Text) & " 'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else
lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""
End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc6()

j=1
lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE
Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else
lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc7()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)='" & Trim(combsession.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then


lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE
Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc8()


j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & " 'and
trim(std_session)='" & Trim(combsession.Text) & " 'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then


lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE
Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc4()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)='" & Trim(txtsem.Text) & " 'and trim(std_session)='" & Trim(combsession.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If
lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""

End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If
If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If

If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"


End Sub

Public Sub cc5()

j=1

lst5.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_session)='" & Trim(combsession.Text) & " 'and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

'If rsSearch(18).VALUE = True Then

'lst5.ListItems(j).Checked = True

'Else

'lst5.ListItems(j).Checked = False

'End If

lst5.ListItems.Add(j) = j

If rsSearch(16).VALUE = True Then

lst5.ListItems(j).SubItems(1) = "Submit"

Else

lst5.ListItems(j).SubItems(1) = "Not Submit"

End If

If rsSearch(1).VALUE <> "" Then

lst5.ListItems(j).SubItems(2) = rsSearch(1).VALUE

Else

lst5.ListItems(j).SubItems(2) = ""

End If

If rsSearch(2).VALUE <> "" Then

lst5.ListItems(j).SubItems(3) = rsSearch(2).VALUE

Else

lst5.ListItems(j).SubItems(3) = ""
End If

If rsSearch(3).VALUE <> "" Then

lst5.ListItems(j).SubItems(4) = rsSearch(3).VALUE

Else

lst5.ListItems(j).SubItems(4) = ""

End If

If rsSearch(4).VALUE <> "" Then

lst5.ListItems(j).SubItems(5) = rsSearch(4).VALUE

Else

lst5.ListItems(j).SubItems(5) = ""

End If

If rsSearch(5).VALUE <> "" Then

lst5.ListItems(j).SubItems(6) = rsSearch(5).VALUE

Else

lst5.ListItems(j).SubItems(6) = ""

End If

If rsSearch(6).VALUE <> "" Then

lst5.ListItems(j).SubItems(7) = rsSearch(6).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(7).VALUE <> "" Then

lst5.ListItems(j).SubItems(8) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(8) = ""

End If

If rsSearch(8).VALUE <> "" Then

lst5.ListItems(j).SubItems(9) = rsSearch(8).VALUE

Else

lst5.ListItems(j).SubItems(9) = ""

End If
If rsSearch(9).VALUE <> "" Then

lst5.ListItems(j).SubItems(10) = rsSearch(9).VALUE

Else

lst5.ListItems(j).SubItems(10) = ""

End If

If rsSearch(10).VALUE <> "" Then

lst5.ListItems(j).SubItems(11) = rsSearch(10).VALUE

Else

lst5.ListItems(j).SubItems(11) = ""

End If

j=j+1

rsSearch.MoveNext

Wend

listof_pre.Caption = ""

listof_pre.Caption = listof_pre.Caption & " " & "(List of all present student with cv:"

listof_pre.Caption = listof_pre.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc1a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE
Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else
lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc2a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If
rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If
If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"
frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc3a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)=' " & Trim(txtsem.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true and attend_interview=true and short_list=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE
Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else
.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc6a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)=' " & Trim(txtsem.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
short_list=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""
End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If
If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc7a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)=' " & Trim(combsession.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then


.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE
Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc8a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close
End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & " 'and
trim(std_session)=' " & Trim(combsession.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""
End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""
frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc4a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)=' " & Trim(txtcourse.Text) & " ' and
trim(std_sem)='" & Trim(txtsem.Text) & " 'and trim(std_session)=' " & Trim(combsession.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then


.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE
Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc5a()

j=1

lst6.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)=' " & Trim(txtcourse.Text) & " ' and
trim(std_session)=' " & Trim(combsession.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true", con,
adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst6

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else
.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""
End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

frmshort_list.Caption = ""

frmshort_list.Caption = frmshort_list.Caption & " " & "(List of all Shot listed student:"

frmshort_list.Caption = frmshort_list.Caption & " " & j - 1 & ")"

End Sub

Public Sub res7a()

j=1

k=1

If lst6.SelectedItem.SubItems(3) <> "" Then

str = lst6.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true and ph_interview=true and attend_interview=true",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(20).VALUE = False
rs.Update

lst3.ListItems.clear

Call Check1a

Else

str = lst6.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and attend_interview=true",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(20).VALUE = False

rs.Update

lst6.ListItems.clear

Call Check1a

'*****************************************

Exit Sub

End If

End Sub

Public Sub res6a()

j=1

k=1

If lst6.SelectedItem.SubItems(3) <> "" Then

str = lst6.SelectedItem.SubItems(3)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(std_roll)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "'and interested=true and submite_cv=true and ph_interview=true and attend_interview=true ",
con, adOpenDynamic, adLockOptimistic
If rs.BOF = False Then rs.MoveFirst

rs(20).VALUE = True

rs.Update

lst3.ListItems.clear

Call Check1a

Else

str = lst6.SelectedItem.SubItems(2)

If rs.State = adStateOpen Then

rs.Close

End If

rs.Open "select *from tbl_interested_student where trim(app_no)='" & (str) & "'and trim(cumpus_no)='" &
Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and attend_interview=true ",
con, adOpenDynamic, adLockOptimistic

If rs.BOF = False Then rs.MoveFirst

rs(20).VALUE = True

rs.Update

lst3.ListItems.clear

Call Check1a

'*****************************************

Exit Sub

End If

End Sub

Public Sub Check1a()

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc1aa

Exit Sub

End If

'*****************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc2aa
Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc3aa

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 0 And txtcno.Text <> "" Then

Call cc6aa

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc7aa

Exit Sub

End If

If chk1.VALUE = 0 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc8aa

Exit Sub

End If

'**************************

If chk1.VALUE = 1 And chk2.VALUE = 1 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc4aa

Exit Sub

End If

'************************************

If chk1.VALUE = 1 And chk2.VALUE = 0 And chk3.VALUE = 1 And txtcno.Text <> "" Then

Call cc5aa

Exit Sub

End If

End Sub

Public Sub cc1aa()


j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If
If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1
rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc2aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE
Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else
.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc3aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)='" & Trim(txtcourse.Text) & " 'and
trim(std_sem)=' " & Trim(txtsem.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and
submite_cv=true and ph_interview=true and attend_interview=true and type=true", con, adOpenDynamic,
adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""
End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If
If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc6aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)=' " & Trim(txtsem.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
short_list=true and type=true", con, adOpenDynamic, adLockOptimistic
If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE
Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub
Public Sub cc7aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_session)=' " & Trim(combsession.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""
End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If
j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc8aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_sem)='" & Trim(txtsem.Text) & " 'and
trim(std_session)=' " & Trim(combsession.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then


.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE
Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc4aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)=' " & Trim(txtcourse.Text) & " ' and
trim(std_sem)='" & Trim(txtsem.Text) & " 'and trim(std_session)=' " & Trim(combsession.Text) & " ' and
trim(cumpus_no)='" & Trim(txtcno.Text) & "' and interested=true and submite_cv=true and ph_interview=true and
attend_interview=true and short_list=true and type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else
.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then

.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""
End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"

End Sub

Public Sub cc5aa()

j=1

lst3.ListItems.clear

If rsSearch.State = adStateOpen Then

rsSearch.Close

End If

rsSearch.Open "select *from tbl_interested_student where trim(std_course)=' " & Trim(txtcourse.Text) & " ' and
trim(std_session)=' " & Trim(combsession.Text) & " ' and trim(cumpus_no)='" & Trim(txtcno.Text) & "' and
interested=true and submite_cv=true and ph_interview=true and attend_interview=true and short_list=true and
type=true", con, adOpenDynamic, adLockOptimistic

If rsSearch.BOF = False Then rsSearch.MoveFirst

While rsSearch.EOF = False

With lst3

.ListItems.Add(j) = j

If rsSearch(1).VALUE <> "" Then

.ListItems(j).SubItems(1) = rsSearch(1).VALUE

Else

.ListItems(j).SubItems(1) = ""

End If

If rsSearch(2).VALUE <> "" Then

.ListItems(j).SubItems(2) = rsSearch(2).VALUE

Else

.ListItems(j).SubItems(2) = ""

End If

If rsSearch(3).VALUE <> "" Then

.ListItems(j).SubItems(3) = rsSearch(3).VALUE

Else

.ListItems(j).SubItems(3) = ""

End If

If rsSearch(4).VALUE <> "" Then

.ListItems(j).SubItems(4) = rsSearch(4).VALUE

Else

.ListItems(j).SubItems(4) = ""

End If

If rsSearch(5).VALUE <> "" Then

.ListItems(j).SubItems(5) = rsSearch(5).VALUE

Else

.ListItems(j).SubItems(5) = ""

End If

If rsSearch(6).VALUE <> "" Then


.ListItems(j).SubItems(6) = rsSearch(6).VALUE

Else

.ListItems(j).SubItems(6) = ""

End If

If rsSearch(7).VALUE <> "" Then

.ListItems(j).SubItems(7) = rsSearch(7).VALUE

Else

lst5.ListItems(j).SubItems(7) = ""

End If

If rsSearch(8).VALUE <> "" Then

.ListItems(j).SubItems(8) = rsSearch(8).VALUE

Else

.ListItems(j).SubItems(8) = ""

End If

If rsSearch(9).VALUE <> "" Then

.ListItems(j).SubItems(9) = rsSearch(9).VALUE

Else

.ListItems(j).SubItems(9) = ""

End If

If rsSearch(10).VALUE <> "" Then

.ListItems(j).SubItems(10) = rsSearch(10).VALUE

Else

.ListItems(j).SubItems(10) = ""

End If

j=j+1

rsSearch.MoveNext

End With

Wend

listof_select.Caption = ""

listof_select.Caption = listof_select.Caption & " " & "(List of all selected student :"

listof_select.Caption = listof_select.Caption & " " & j - 1 & ")"


End Sub

Campus Report Form


TESTING PROCEDURE
The main objective of the testing here is to execute a program and find the
errors, so that software can function according to specification specified for
behavioral and performance requirement of the software.

1. Testing Techniques:
We have used the following testing technique for finding errors in this
software:

(A) White Box Testing Technique:


We have used this method to exercise the internal program logic.
During the course of white box testing, I have done the following
work.

 All independent paths within a module are exercised at least


once.
 All logical decision on their true and false side is also exercised.
 All loops were executed at their boundaries and within their
operation bounds.
 Validity of internal data structure was also exercised.
Some of white box testing techniques, which we have used for this
software, are:

1. Basis Path Testing:


2. The basis path methods enable me to derive a logical complexity
measure of a procedure design and this measure is used for defining a
basis set of execution path. This path ensures to execute every
statement in a program at least once.
3. Control structure testing:
Since the basis path testing was not enough, hence the control structure
testing is used to exercise the logical condition in a program module.

During the course of testing, I have done the following activities, which are
described below

 After testing all conditions, we have found some errors like:


 Boolean variable error in the module cost benefit analysis.

Case:

In cost benefit analysis, we have used the concept of relative cell


referencing in this contact; we have taken two types of cell (i) Variable cell,
(ii) function based constant value cell. Only user can modify variable cell
but function value cell only display manipulated value. If cell is functional
cell, its return TURE lese FALSE. During course of testing, we have found
this function not return value properly. So we have separately test this
function for Boolean errors.
 Relational operator error.
 Boolean Parenthesis error.
 Arithmetic expression error.
 After that we have tested the flow of data across the variable in the
module.
 All the loops are also tested to ensure the validity. We found that a
loop in the cost benefits analysis modules was functioning more
than required iteration; it was later corrected to run within the
required iteration.

(B). Black Box Testing:

This method is used to test the functional requirements of the software as


specified in the section of S.E. Requirement Specification. By using this
technique I have found errors in the following categories:

o Incorrect or missing functions


o Interface errors
o Errors in data structure
o Behavior or performance errors and
o Initialization and termination errors
Under the Black Box testing we have used the following types of testing
methods:
4. Testing Strategies:
Testing strategy, which I have used here to integrate software test case
design methods into a series of steps, can be categorized into two
spectrums:
 Code Testing.
 Specifications testing.
The testing strategies, which I have used here, have the following generic
characteristics

 First component level testing are performed and then we moved


towards the integration of the entire software.
 During the course of various types of testing, user involvements are
also considered.
 Different types of testing are performed at different points of time.
A. Unit Testing: I have taken following steps during unit testing:

I. The module interface is tested to ensure that information properly


flows into and out of the program unit under test.
II. The local data structure is examined to ensure that data stored
temporarily maintains its integrity during all steps in a program
execution.
III. All independent paths within each module are exercised to ensure
that all statements in a module have been exercised at least once.
IV. Boundary is tested to ensure that the module operate properly at
boundaries established to limit or restrict processing.
V. Finally all error handling path are tested.
Case:

During the code implementation, we have face with precision problem


In “cost benefit analysis”.

B. Integration Testing: During this phase we have combine all the


module and perform integration sting for constructing the program
structure while at the same time conducting tests to uncover errors
associated with interfacing. In order to integrate all the modules we
have used Bottom up approach.

C. Validation Testing:

After the completion of integration testing and removal of interfacing


problem, we have conducted validation testing according to reasonable
expectation of user specified in the S.E.Requirement specification
documents. Since this s/w is designed for management, hence a series
of acceptance tests are also conducted. The acceptance test is
conducted is conducted by Mr. Neeraj Kant Jha and he is found the
satisfactory performance of the software according to their needs.

D. System Testing:

Finally we have conducted the system testing to fully exercise the


currently developed computer based system “Medicine Distributor
Management system”.

Following tests are performed during this phase:


I. Recovery Testing: During recovery testing we have exercised fault
tolerance capacity of system, ability to recover from failure. We
found that the system is fault tolerant and processing fault is not
causing overall system function to cease.
II. Security Testing: We have made various attempts to penetrate the
data stored in the system.
FEELING ABOUT USER
Everyone wants to automate the entire process that involved in the OES-
On-Line Examination System, so that all the problems uncounted yet can
be solved. They feel computerization is the only solution.

The use of the information technology for the automation of manual


system aim to: ---

 Cut down arithmetic errors


 Provide quicker information
 Provide reliable media for storage
 Remove duplicity of work
 Provide security to the data
 Enhance efficiency
EVALUATION

The field data provided by the supervisor, assigned by Mr. Deepak Kumar
Singh, was put to test. The manually generated results and reports are
compared against the presently developed s/w for verification.

Following points are observed:

1. The results produced by both the system are same and correct.
2. Reports are correct.
3. Report generation becomes rather easy than manual system.
4. The efficiency of the existing system enhanced significantly.
5. The new information system has changed the completeness of the
information significantly.
6. The decision making process now simplified, hence overall saving
in management efforts.
7. The productivity of the system increased.

CONCLUSION
While writing solution to this problem, I realized that right attitude towards
problem solving with at least an average aptitude gives dynamic result. At
start, I was having no roadmap, but subsequently as I progressed all become
clearer and clearer, finally I am writing the Termination Analysis. All the
process that I have used can be used informally, but it’s formal execution I
have found almost necessary to give it a professional touch, which after
realizes into its commercial value. I have also realized that, if any project
doesn’t have commercial nature, its completion or incompletion doesn’t
have any meaning. Additionally talking to seniors and experts, proper
documentation and investigating attitude are must to develop a project.

As a formal method I will follow sequential way to


develop any

solution given to me, in future:

 System study to collect max. facts in less time.


 System Analysis to understands its pros and cons.
 All(inferior and Superior) designs, that can be used to solve that
problem and choosing the the best based on the cost-benefits
Analysis.
 A severe testing strategy to test even least regretful situations that
could occur.
 Comfortable documentation with every step.

BIBLIOGRAPHY

1.System Analysis & Design Elis M.Awad

Galgotia Publication (P) Ltd.

2.Humanised Information System & Design

McGraw Hills publication Ltd.

3. Manual of Existing System of The organization

4. Microsoft Access 2003

By:-Gerg Perry

5.Bible of ASP.Net

-By Evangelos Petroutsos.

-By BPB Publication.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy