help me vb.net whent try record in access 2013
3 posters
Page 1 of 1
help me vb.net whent try record in access 2013
hello
i trying to know how i record to access db when i use RadioButton to give in db yes or no
i put 2 Radiobutton one for yes other for no
i want to know to i make it to record yes or no to access db please help
using vb.net 2012
access 2013
thanks for help us to be good programing
i trying to know how i record to access db when i use RadioButton to give in db yes or no
i put 2 Radiobutton one for yes other for no
i want to know to i make it to record yes or no to access db please help
using vb.net 2012
access 2013
thanks for help us to be good programing
zedron- Newbie
- Posts : 5
Join date : 2013-11-12
Re: help me vb.net whent try record in access 2013
try this sir!
- Code:
If RadioButton1.Checked = True Then
code for checked
Else
code for none checked
End If
giovhz- Newbie
- Posts : 41
Join date : 2013-03-09
Re: help me vb.net whent try record in access 2013
not work
error on :
If RadioButton1.Checked = True Then
code for checked
Else
code for none checked
End If
error on :
If RadioButton1.Checked = True Then
code for checked
Else
code for none checked
End If
zedron- Newbie
- Posts : 5
Join date : 2013-11-12
Re: help me vb.net whent try record in access 2013
I mean!zedron wrote:not work
error on :
If RadioButton1.Checked = True Then
code for checked
Else
code for none checked
End If
If RadioButton1.Checked = True Then
code for checked
your own program!
Else
code for none checked
End If
Like!
If RadioButton1.Checked = True Then
label1.text = "Checked"
Else
label1.text = "Not Checked"
End If
giovhz- Newbie
- Posts : 41
Join date : 2013-03-09
Re: help me vb.net whent try record in access 2013
Dim Query As String
Sub INSERT_QUERY()
Dim cmd As New MySqlCommand
With cmd
.CommandText = Query
.Connection = con
.ExecuteNonQuery()
End With
End Sub
'
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
Query = "INSERT INTO yesorno(YN) VALUES ('" & RadioButton1.Text & "')"
INSERT_QUERY()
MsgBox("YES")
Exit Sub
ElseIf RadioButton2.Checked = True Then
Query = "INSERT INTO yesorno(YN) VALUES ('" & RadioButton2.Text & "')"
INSERT_QUERY()
MsgBox("NO")
Exit Sub
End If
End Sub
try this...sorry for l8 rply..
Sub INSERT_QUERY()
Dim cmd As New MySqlCommand
With cmd
.CommandText = Query
.Connection = con
.ExecuteNonQuery()
End With
End Sub
'
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
Query = "INSERT INTO yesorno(YN) VALUES ('" & RadioButton1.Text & "')"
INSERT_QUERY()
MsgBox("YES")
Exit Sub
ElseIf RadioButton2.Checked = True Then
Query = "INSERT INTO yesorno(YN) VALUES ('" & RadioButton2.Text & "')"
INSERT_QUERY()
MsgBox("NO")
Exit Sub
End If
End Sub
try this...sorry for l8 rply..
putayputay- Newbie
- Posts : 10
Join date : 2013-03-09
Similar topics
» how to insert/add record in ms access using vb.net
» how to delete record in ms access using vb.net
» how to update record in ms access using vb.net
» how to view record in ms access using vb.net
» help me for multiple Table using access 2013
» how to delete record in ms access using vb.net
» how to update record in ms access using vb.net
» how to view record in ms access using vb.net
» help me for multiple Table using access 2013
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|