Advertisement

07.09.2008 at 09:57AM PDT, ID: 23550985
[x]
Attachment Details

insert statement using textbox as where clause

Asked by H-SC in Microsoft Visual Basic.Net

I have the following that is not working.  any ideas??

  Dim command100 As New SqlClient.SqlCommand("insert into mytable(tag) values ('" & addnewtag.Text & "') WHERE mytable.tag <> '" & addnewtag.Text & "' ", connect100)Start Free Trial
[+][-]07.09.2008 at 10:11AM PDT, ID: 21965953

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:34AM PDT, ID: 21966184

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:40AM PDT, ID: 21966246

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: DanielWilson
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.09.2008 at 11:39AM PDT, ID: 21966873

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628