wbb Posted March 24, 2004 Posted March 24, 2004 Dim Select_all As New Odbc.OdbcDataAdapter("Select * from stock where din=" & txtStartDate.Text, Connection) how can i add a " " for the txtstartdate.txt Quote
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 here what's your line supposed to be : Dim Select_all As New Odbc.OdbcDataAdapter("Select * from stock where din=" & "'" & txtStartDate.Text & "'", Connection) this "'" = " ' " just put the ' inside " and concat with the rest Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted March 24, 2004 Moderators Posted March 24, 2004 or... Dim Select_all As New Odbc.OdbcDataAdapter("Select * from stock where din='" & txtStartDate.Text & "'", Connection) Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.