hi please help me with this. when I try to save it, it saved. but the problem, it is saving though it has the same record
If idno.Text = "" Or proflname.Text = "" Or proffname.Text = "" Or _
profmi.Text = "" Or subcode.Text = "" Or teachuser.Text = "" Or teachpass.Text = "" Then
MsgBox("One of the Mandartory field is empty. Please try again", 16, "Message")
elseif subcode.text=adors.fields("classsec").value then
msgbox("already exist")
subcode.text=""
Else
adoRS = cn.Execute("INSERT INTO teacherinfo([idno], [proflname], [proffname], [profmi], [classsec], [profusername], [profpassword]) VALUES('" & idno.Text & "', '" & proflname.Text & _
"','" & proffname.Text & "','" & profmi.Text & "','" & subcode.Text & "','" & teachuser.Text & "','" & teachpass.Text & "')")
MsgBox("successfully Registered!", 64, "SAVE")
idno.Text = ""
proflname.Text = ""
proffname.Text = ""
profmi.Text = ""
subcode.Text = ""
teachuser.Text = ""
teachpass.Text = ""
End If