Click here to Skip to main content
15,916,601 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Check Computer Administrator Pin
jzonthemtn25-Sep-08 0:19
jzonthemtn25-Sep-08 0:19 
GeneralRe: Check Computer Administrator Pin
Gagan.2025-Sep-08 1:08
Gagan.2025-Sep-08 1:08 
QuestionRe: Check Computer Administrator Pin
Gagan.2025-Sep-08 1:26
Gagan.2025-Sep-08 1:26 
AnswerRe: Check Computer Administrator Pin
Jon_Boy25-Sep-08 3:56
Jon_Boy25-Sep-08 3:56 
QuestionOnBeforeKeyPress Pin
Ballita24-Sep-08 18:49
Ballita24-Sep-08 18:49 
AnswerRe: OnBeforeKeyPress Pin
User 81152324-Sep-08 19:08
User 81152324-Sep-08 19:08 
QuestionAsking about Updating SQL Database row Pin
drexler_kk24-Sep-08 18:24
drexler_kk24-Sep-08 18:24 
AnswerRe: Asking about Updating SQL Database row Pin
Johan Hakkesteegt24-Sep-08 22:03
Johan Hakkesteegt24-Sep-08 22:03 
When any sql update statement does not affect any rows at all, and no error is thrown then it is almost always due to the WHERE clause. With the conditions that are set specifically in the code, no rows will be updated.

It is likely that not all of your variables actually return exactly the values that you tested with.

I suggest you put a textbox somewhere (if possible) and write the entire UPDATE statement to it. Someting like:
dim SqlUpdateStatement as string = "UPDATE pos_runningno SET Prefix='01',LastNo=' " & strReceiptNo & " ',Length='8' WHERE LocationCode =' " & TerminalLocate & " ' AND TerminalCode='" & TerminalID & "' AND Source='" & strSource & " '"
ObjComm = New OdbcCommand(SqlUpdateStatement, ObjConn)
TextBox1.Text = SqlUpdateStatement
            ObjConn.Open()
            ObjComm.ExecuteNonQuery()
            ObjConn.Close()

That way you can take a copy of the actual statement your code is trying to run and test that statement in SQLYog, or at least see exactly what parameters your code is feeding to the sql statement.

Hope it helps,

Johan

My advice is free, and you may get what you paid for.

GeneralRe: Asking about Updating SQL Database row Pin
drexler_kk24-Sep-08 22:46
drexler_kk24-Sep-08 22:46 
GeneralRe: Asking about Updating SQL Database row Pin
Johan Hakkesteegt25-Sep-08 0:35
Johan Hakkesteegt25-Sep-08 0:35 
QuestionFormat Dates of TextBox or DateTimePicker Pin
sur07124-Sep-08 15:26
sur07124-Sep-08 15:26 
AnswerRe: Format Dates of TextBox or DateTimePicker Pin
User 81152324-Sep-08 17:52
User 81152324-Sep-08 17:52 
GeneralRe: Format Dates of TextBox or DateTimePicker Pin
sur07124-Sep-08 23:41
sur07124-Sep-08 23:41 
GeneralRe: Format Dates of TextBox or DateTimePicker Pin
User 81152325-Sep-08 10:21
User 81152325-Sep-08 10:21 
QuestionWeird IE7 DocumentComplete Error. Pin
User 81152324-Sep-08 12:23
User 81152324-Sep-08 12:23 
AnswerRe: Weird IE7 DocumentComplete Error. Pin
Steven J Jowett24-Sep-08 13:05
Steven J Jowett24-Sep-08 13:05 
GeneralRe: Weird IE7 DocumentComplete Error. Pin
User 81152324-Sep-08 15:41
User 81152324-Sep-08 15:41 
GeneralRe: Weird IE7 DocumentComplete Error. Pin
Johan Hakkesteegt24-Sep-08 21:42
Johan Hakkesteegt24-Sep-08 21:42 
GeneralRe: Weird IE7 DocumentComplete Error. [modified] Pin
User 81152325-Sep-08 10:14
User 81152325-Sep-08 10:14 
GeneralRe: Weird IE7 DocumentComplete Error. [modified] Pin
User 81152325-Sep-08 12:03
User 81152325-Sep-08 12:03 
QuestionFont Color Change Pin
Member 457761924-Sep-08 8:42
Member 457761924-Sep-08 8:42 
AnswerRe: Font Color Change Pin
Dave Kreskowiak24-Sep-08 9:34
mveDave Kreskowiak24-Sep-08 9:34 
AnswerRe: Font Color Change Pin
Paul Conrad24-Sep-08 10:57
professionalPaul Conrad24-Sep-08 10:57 
AnswerRe: Font Color Change Pin
Steven J Jowett24-Sep-08 11:13
Steven J Jowett24-Sep-08 11:13 
GeneralRe: Font Color Change Pin
Paul Conrad24-Sep-08 11:27
professionalPaul Conrad24-Sep-08 11:27 

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.