הכנסת מחרוזת מ-database ב-vb.net

omer66721

New member
הכנסת מחרוזת מ-database ב-vb.net

יש לי form אחד בו אני מכניס מחרוזת לחיפוש בטבלה של מסד נתונים.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim frm1 As New frm1() Dim sSql As String = "select * from Disc where CDTitle='" & TextBox1.Text & "' " If Module1.getData(sSql) Then frm1.txtCdTitle.Text = ???????? frm1.Show() Else MessageBox.Show("Item not found") End If End Sub ניסיתי כל מיני אפשרויות במקום בו מופיעים סימני השאלה ושום דבר לא עובד תודה עומר​
 
למעלה