Aug 7, 2001 #1 kenjoswe Technical User Sep 19, 2000 327 SE Hi all, How can I retrive records in VB6 using a value from a TextBox into a SQL-query? Something like: select * from Table1 where Field1= TextBox1 /Kent J.
Hi all, How can I retrive records in VB6 using a value from a TextBox into a SQL-query? Something like: select * from Table1 where Field1= TextBox1 /Kent J.
Aug 7, 2001 #2 csjoseph MIS Jan 2, 2001 247 US Yes, you are on the right track. just make sure you concatenate correctly. Below is an example of how to concatenate your sql string. "SELECT * FROM DB.dbo.TABLE_NAME WHERE User_name = '" & text1.text & "'" Upvote 0 Downvote
Yes, you are on the right track. just make sure you concatenate correctly. Below is an example of how to concatenate your sql string. "SELECT * FROM DB.dbo.TABLE_NAME WHERE User_name = '" & text1.text & "'"
Aug 7, 2001 #3 MatsHulten Programmer Dec 29, 2000 180 SE "select * from Table1 where Field1 = " & texbox1.text -Mats Upvote 0 Downvote