Aug 7, 2001 #1 kenjoswe Technical User Joined Sep 19, 2000 Messages 327 Location 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 Joined Jan 2, 2001 Messages 247 Location 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 Joined Dec 29, 2000 Messages 180 Location SE "select * from Table1 where Field1 = " & texbox1.text -Mats Upvote 0 Downvote