Using delete statement in VB.net
Solved/Closed
mikeoe2003
Posts
24
Registration date
Thursday November 1, 2012
Status
Member
Last seen
March 27, 2014
-
Nov 1, 2012 at 10:24 AM
Zohaib R - Nov 2, 2012 at 04:34 AM
Zohaib R - Nov 2, 2012 at 04:34 AM
Related:
- Using delete statement in VB.net
- Fenix internet on bank statement - Guide
- Delete my whatsapp account without app - Guide
- Application for bank statement sbi - Guide
- How to delete whatsapp account without phone - Guide
- Delete snapchat account permanently - Guide
2 responses
Zohaib R
Posts
2368
Registration date
Sunday September 23, 2012
Status
Member
Last seen
December 13, 2018
69
Nov 2, 2012 at 02:40 AM
Nov 2, 2012 at 02:40 AM
Hi mikeoe2003,
As I mentioned earlier in your post, when referring to a text box you must enclose the textbox name in ` " & & " `.
Replace:
mySQLString = "DELETE FROM myuser WHERE " & _
"username='txtid.Text' AND passwords='txtpw.Text'"
With:
mySQLString = "DELETE FROM myuser WHERE " & _
"username='" & txtid.Text & "' AND passwords='" & txtpw.Text & "'"
Please reply if you have any further questions.
As I mentioned earlier in your post, when referring to a text box you must enclose the textbox name in ` " & & " `.
Replace:
mySQLString = "DELETE FROM myuser WHERE " & _
"username='txtid.Text' AND passwords='txtpw.Text'"
With:
mySQLString = "DELETE FROM myuser WHERE " & _
"username='" & txtid.Text & "' AND passwords='" & txtpw.Text & "'"
Please reply if you have any further questions.