nK0de, on 03 March 2012 - 03:44 AM, said:
here you go sir




Posted 03 March 2012 - 04:00 AM
nK0de, on 03 March 2012 - 03:44 AM, said:
Posted 03 March 2012 - 04:15 AM
cj777, on 03 March 2012 - 04:00 AM, said:
nK0de, on 03 March 2012 - 03:44 AM, said:
Posted 03 March 2012 - 04:27 AM
This post has been edited by nK0de: 03 March 2012 - 04:28 AM
Posted 03 March 2012 - 04:51 AM
nK0de, on 03 March 2012 - 04:44 AM, said:
Posted 03 March 2012 - 05:31 AM
This post has been edited by CharlieMay: 03 March 2012 - 05:33 AM
Posted 03 March 2012 - 05:35 AM
cj777, on 03 March 2012 - 01:29 PM, said:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttadd.Click
If Me.txtage.Text = "" Or Me.txtheight.Text = "" Or Me.txtweight.Text = "" Or Me.txtabdomen.Text = "" Or Me.txtbp.Text = "" Or Me.txtpr.Text = "" Or Me.txtrr.Text = "" Or Me.txttemp.Text = "" Or txtextrimities.Text = "" Or txtheart.Text = "" Or Me.txtlung.Text Or txtskin.Text = "" Or Me.txtmdiag.Text = "" Or Me.txtremarks.Text = "" Then
MessageBox.Show("All fields mus not be blank!")
Exit Sub
Else
cls.addcheck(txtage.Text, txtheight.Text, txtweight.Text, txtabdomen.Text, txtbp.Text, txtpr.Text, txtrr.Text, txtextrimities.Text, txtheart.Text, txtlung.Text, txtskin.Text, txtmdiag.Text, txtremarks.Text)
End If
End Sub
This post has been edited by nK0de: 03 March 2012 - 05:36 AM
Posted 03 March 2012 - 05:55 AM
nK0de, on 03 March 2012 - 05:35 AM, said:
cj777, on 03 March 2012 - 01:29 PM, said:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttadd.Click
If Me.txtage.Text = "" Or Me.txtheight.Text = "" Or Me.txtweight.Text = "" Or Me.txtabdomen.Text = "" Or Me.txtbp.Text = "" Or Me.txtpr.Text = "" Or Me.txtrr.Text = "" Or Me.txttemp.Text = "" Or txtextrimities.Text = "" Or txtheart.Text = "" Or [u]Me.txtlung.Text[/u] Or txtskin.Text = "" Or Me.txtmdiag.Text = "" Or Me.txtremarks.Text = "" Then
MessageBox.Show("All fields mus not be blank!")
Exit Sub
Else
cls.addcheck(txtage.Text, txtheight.Text, txtweight.Text, txtabdomen.Text, txtbp.Text, txtpr.Text, txtrr.Text, txtextrimities.Text, txtheart.Text, [u]txtlung.Text[/u], txtskin.Text, txtmdiag.Text, txtremarks.Text)
End If
End Sub
Posted 03 March 2012 - 05:59 AM
cj777, on 03 March 2012 - 06:25 PM, said:
nK0de, on 03 March 2012 - 05:35 AM, said:
cj777, on 03 March 2012 - 01:29 PM, said:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttadd.Click
If Me.txtage.Text = "" Or Me.txtheight.Text = "" Or Me.txtweight.Text = "" Or Me.txtabdomen.Text = "" Or Me.txtbp.Text = "" Or Me.txtpr.Text = "" Or Me.txtrr.Text = "" Or Me.txttemp.Text = "" Or txtextrimities.Text = "" Or txtheart.Text = "" Or [u]Me.txtlung.Text[/u] Or txtskin.Text = "" Or Me.txtmdiag.Text = "" Or Me.txtremarks.Text = "" Then
MessageBox.Show("All fields mus not be blank!")
Exit Sub
Else
cls.addcheck(txtage.Text, txtheight.Text, txtweight.Text, txtabdomen.Text, txtbp.Text, txtpr.Text, txtrr.Text, txtextrimities.Text, txtheart.Text, [u]txtlung.Text[/u], txtskin.Text, txtmdiag.Text, txtremarks.Text)
End If
End Sub
Posted 03 March 2012 - 05:59 AM
CharlieMay, on 03 March 2012 - 05:31 AM, said:
Posted 03 March 2012 - 06:04 AM
nK0de, on 03 March 2012 - 05:59 AM, said:
cj777, on 03 March 2012 - 06:25 PM, said:
nK0de, on 03 March 2012 - 05:35 AM, said:
cj777, on 03 March 2012 - 01:29 PM, said:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttadd.Click
If Me.txtage.Text = "" Or Me.txtheight.Text = "" Or Me.txtweight.Text = "" Or Me.txtabdomen.Text = "" Or Me.txtbp.Text = "" Or Me.txtpr.Text = "" Or Me.txtrr.Text = "" Or Me.txttemp.Text = "" Or txtextrimities.Text = "" Or txtheart.Text = "" Or [u]Me.txtlung.Text[/u] Or txtskin.Text = "" Or Me.txtmdiag.Text = "" Or Me.txtremarks.Text = "" Then
MessageBox.Show("All fields mus not be blank!")
Exit Sub
Else
cls.addcheck(txtage.Text, txtheight.Text, txtweight.Text, txtabdomen.Text, txtbp.Text, txtpr.Text, txtrr.Text, txtextrimities.Text, txtheart.Text, [u]txtlung.Text[/u], txtskin.Text, txtmdiag.Text, txtremarks.Text)
End If
End Sub
Public Function addcheck(ByVal age, ByVal height, ByVal weight, ByVal abdomen, ByVal bp, ByVal pr, ByVal rr, ByVal temp, ByVal extrimities, ByVal heart, ByVal lung, ByVal skin, ByVal meddiagnosis, ByVal remarks)
Dim cmd As OleDbCommand
init_con()
cmd = con.CreateCommand
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "addcheck"
cmd.Parameters.AddWithValue("@age", age)
cmd.Parameters.AddWithValue("@height", height)
cmd.Parameters.AddWithValue("@weight", weight)
cmd.Parameters.AddWithValue("@abdomen", abdomen)
cmd.Parameters.AddWithValue("@bp", bp)
cmd.Parameters.AddWithValue("@pr", pr)
cmd.Parameters.AddWithValue("@rr", rr)
cmd.Parameters.AddWithValue("@temp", temp)
cmd.Parameters.AddWithValue("@extrimities", extrimities)
cmd.Parameters.AddWithValue("@heart", heart)
cmd.Parameters.AddWithValue("@lung", lung)
cmd.Parameters.AddWithValue("@skin", skin)
cmd.Parameters.AddWithValue("@meddiagnosis", meddiagnosis)
cmd.Parameters.AddWithValue("@remarks", remarks)
cmd.ExecuteNonQuery()
con.Close()
Return 0
End Function
End Class]
This post has been edited by cj777: 03 March 2012 - 06:09 AM
