Click here to Skip to main content
15,885,980 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
Dave Kreskowiak21-Aug-18 10:11
mveDave Kreskowiak21-Aug-18 10:11 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
paolo71xx23-Aug-18 2:25
paolo71xx23-Aug-18 2:25 
QuestionThe Problem in Update Command with Table Adapter VB.net Pin
Member 128130745-Aug-18 18:29
Member 128130745-Aug-18 18:29 
AnswerRe: The Problem in Update Command with Table Adapter VB.net Pin
CHill606-Aug-18 1:54
mveCHill606-Aug-18 1:54 
AnswerRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan6-Aug-18 3:10
mveRichard MacCutchan6-Aug-18 3:10 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130746-Aug-18 15:55
Member 128130746-Aug-18 15:55 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan6-Aug-18 20:54
mveRichard MacCutchan6-Aug-18 20:54 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Dave Kreskowiak7-Aug-18 6:14
mveDave Kreskowiak7-Aug-18 6:14 
Member 12813074 wrote:
(“update datamahasiswa set no= & TextBox1.Text & where nama= & TextBox2.Text & ”)

You also seem to be failing String Handling 101.

That code will NOT put the value in TextBox1 into the string. Your actual SQL query will read like this every single time you execute it no matter what you type into the TextBoxes:
"update datamahasiswa set no= & TextBox1.Text & where nama= & TextBox2.Text & "
Again, it will NOT place the values of TextBox1.Text and TextBox2.Text into the SQL string you're building.

You might want to read up on this & Operator (Visual Basic) | Microsoft Docs[^].

Also, NEVER build SQL strings like this. You are blindly trusting user input. That is a bad thing. You're opening yourself up to destroying your database, either accidentally or maliciously. Google for "SQL Injection Attack" to find out why what you're doing is so bad.

GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 15:37
Member 128130747-Aug-18 15:37 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:57
Member 128130747-Aug-18 22:57 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 18:02
Member 128130747-Aug-18 18:02 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan7-Aug-18 20:56
mveRichard MacCutchan7-Aug-18 20:56 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:27
Member 128130747-Aug-18 22:27 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan7-Aug-18 22:35
mveRichard MacCutchan7-Aug-18 22:35 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:53
Member 128130747-Aug-18 22:53 
Questioni want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Member 139364602-Aug-18 21:19
Member 139364602-Aug-18 21:19 
AnswerRe: i want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Richard MacCutchan2-Aug-18 21:50
mveRichard MacCutchan2-Aug-18 21:50 
AnswerRe: i want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Eddy Vluggen2-Aug-18 22:24
professionalEddy Vluggen2-Aug-18 22:24 
Questionhow to display user data after login in vb Pin
Member 139364602-Aug-18 21:12
Member 139364602-Aug-18 21:12 
AnswerRe: how to display user data after login in vb Pin
Richard MacCutchan2-Aug-18 21:48
mveRichard MacCutchan2-Aug-18 21:48 
SuggestionSome advice ... Pin
CHill602-Aug-18 21:55
mveCHill602-Aug-18 21:55 
QuestionDataGriedView Maestro - Detalle Pin
Member 1219672031-Jul-18 15:07
Member 1219672031-Jul-18 15:07 
AnswerRe: DataGriedView Maestro - Detalle Pin
dan!sh 31-Jul-18 20:22
professional dan!sh 31-Jul-18 20:22 
QuestionCan anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Member 331739318-Jul-18 6:40
Member 331739318-Jul-18 6:40 
AnswerRe: Can anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Richard Deeming18-Jul-18 7:34
mveRichard Deeming18-Jul-18 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.