Thanks a lot
i have did it.. but when i try to debug.. it gives me a error.. can anyone tell me y
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim con As New SqlClient.SqlConnection("data source=D:\Crap\Dialog Application Check Bill\Dialog Bill Check\Dialog Bill Check\database.mdf")
Dim cmd As New SqlCommand()
cmd.Connection = con
con.Open()
cmd.CommandText = "insert into DailySMS values ('" & txtInternational.Text & "','" & txtLocal.Text & "')"
cmd.ExecuteNonQuery()
MsgBox("Record is successfully stored")
con.Close()
End Sub
End Class
Reputation Points: -1
Solved Threads: 4
Junior Poster in Training
Offline 78 posts
since May 2008