can you help me pls

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 13
Reputation: san_gwapo19 is an unknown quantity at this point 
Solved Threads: 0
san_gwapo19 san_gwapo19 is offline Offline
Newbie Poster

can you help me pls

 
0
  #1
Aug 26th, 2008
anyone here knows how to create a bank simulation
deposit and withdraw..tnx a lot guys!!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 20
Reputation: prasannapower is an unknown quantity at this point 
Solved Threads: 0
prasannapower prasannapower is offline Offline
Newbie Poster

Re: can you help me pls

 
0
  #2
Aug 27th, 2008
Hi Everyone ,
Whats the conectionstring Vb.net2003 with Sql2000..?

Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click
Dim constr As String
Dim Sql As String
Dim red As String
Sql = "Select * from Sample"
Dim con As SqlClient.SqlConnection =_ _NewSqlClient.SqlConnection_
("DataSource=QB;uid=sa;Pwd=pisces;persi _st security info=False;initialcatalog=Sample")
MsgBox("Test")
Try
con.Open()
MsgBox("Connection opened successfully.")
constr = "Insert Sample where Name='" & txtname.Text & "' and Number='" & txtnumber.Text & "'"
Dim com As New System.Data.SqlClient.SqlCommand(constr, con)
Finally
con.Close()
End Try
End Sub


I m Used this coding but it says Error

Can u help meeee :-)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum


Views: 283 | Replies: 1
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC