Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Does anybody know what the syntax is from a delete command when you use for example a value of a textbox (it's a DELETE command for an ExecuteNonQuery command)

I tried the following:

 

 

Dim squery As String = " DELETE FROM Table1 WHERE (ID = '" & textbox1.Text & "')"

 

I hope someone can help

 

Martijn

Posted

Dim Squery As String = "Delete FROM Table1 WHERE ID=" & txtBox.Text 

 

Thats what works for me, I was trying ID = 'ID NUMBER' but never got it working had to the remove both ' for it to work properly. Am using office 2000 dont know if that has anything to do with it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...