hello...
Can you help me please, how can i use the checkbox if i want to display on my listiew
Active or not Active After clicking the addbutton.
Example
Jemz Gimz 123 then i will check the checkbox and click the Add button
it should display on my listview
Jemz Gimz 123 Active.
Can you help me please how can i do this.it this possible in checkbox?
Thank you in advance and I am hoping for your positive response.
here is my code
Private Sub chkbox_Click()
Dim m_id As String
sql = "select Status from Customer where Id = '" & m_id & "'"
rs.Open sql, con, adOpenDynamic, adLockOptimistic
If rs.BOF = True And rs.EOF = True Then
Else
If chkbox.Value = 1 Then
rs!vbYesNo = "Active"
rs.Update
rs.Close
Else
rs!vbYesNo = "Not Active"
rs.Update
rs.Close
End If
End If
End Sub
Private Sub cmdadd_Click()
dim m_id as string
sql = "select *Customer where Id ='" & m_id & "'"
ip_rs.Open sql, con, adOpenStatic, adLockOptimistic
If ip_rs.BOF = True And ip_rs.EOF = True Then
sql = "INSERT INTO Customer(Id,User_Name,Family_Name) VALUES('" & txtname.Text & "', '" & txtfname.Text & "','" & txtid.Text & "')"
con.Execute (sql)