Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 4:52
Rashar24-Feb-06 4:52 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 5:19
Felipe Dalorzo24-Feb-06 5:19 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 5:47
Rashar24-Feb-06 5:47 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 6:16
Felipe Dalorzo24-Feb-06 6:16 
QuestionWhats wrong with this.......... Pin
daviiie24-Feb-06 4:09
daviiie24-Feb-06 4:09 
AnswerRe: Whats wrong with this.......... Pin
Felipe Dalorzo24-Feb-06 4:55
Felipe Dalorzo24-Feb-06 4:55 
GeneralRe: Whats wrong with this.......... Pin
daviiie24-Feb-06 5:17
daviiie24-Feb-06 5:17 
AnswerRe: Whats wrong with this.......... Pin
Roy Heil24-Feb-06 5:22
professionalRoy Heil24-Feb-06 5:22 
My first question has to be, what is in sComm before you this assignment. You are concatinating the select command to the value in sComm, so if sComm contains "Fixtures.Date", then you will end up with

"Fixtures.DateSELECT Fixtures.HomeTeam, Fixtures.AwayTeam, Fixtures.Date FROM Fixtures WHERE (Fixtures.HomeTeam ='" + TName + "' or Fixtures.AwayTeam = '" + TName + "')ORDER BY Fixtures.Date"

and of course this is not a proper sql command.

I would suggest changing

sComm += "SELECT Fixtures.HomeTeam, Fixtures.AwayTeam, Fixtures.Date FROM Fixtures WHERE (Fixtures.HomeTeam ='" + TName + "' or Fixtures.AwayTeam = '" + TName + "')ORDER BY Fixtures.Date"

to

sComm = "SELECT Fixtures.HomeTeam, Fixtures.AwayTeam, Fixtures.Date FROM Fixtures WHERE (Fixtures.HomeTeam ='" + TName + "' or Fixtures.AwayTeam = '" + TName + "')ORDER BY Fixtures.Date"

Hope this helps.


Roy.
QuestionMerge Pdf Files Pin
contact ajo24-Feb-06 3:46
contact ajo24-Feb-06 3:46 
QuestionPassword hacking Pin
Osama12324-Feb-06 3:18
Osama12324-Feb-06 3:18 
AnswerRe: Password hacking Pin
J4amieC24-Feb-06 3:45
J4amieC24-Feb-06 3:45 
AnswerRe: Password hacking Pin
[DK]KiloDunse24-Feb-06 6:24
[DK]KiloDunse24-Feb-06 6:24 
QuestionHow to kill an Excel process? Pin
Juan Pedro Prez24-Feb-06 2:34
Juan Pedro Prez24-Feb-06 2:34 
AnswerRe: How to kill an Excel process? Pin
Dean_SF24-Feb-06 8:40
Dean_SF24-Feb-06 8:40 
GeneralRe: How to kill an Excel process? Pin
Juan Pedro Prez24-Feb-06 9:07
Juan Pedro Prez24-Feb-06 9:07 
QuestionHow to shift to Admin account(in vb)? Pin
SIJUTHOMASP24-Feb-06 1:20
professionalSIJUTHOMASP24-Feb-06 1:20 
QuestionSending mail using SMTP Pin
Sgn_Flex23-Feb-06 23:43
Sgn_Flex23-Feb-06 23:43 
AnswerRe: Sending mail using SMTP Pin
Guffa24-Feb-06 0:20
Guffa24-Feb-06 0:20 
AnswerRe: Sending mail using SMTP Pin
Divya Rathi24-Feb-06 9:08
Divya Rathi24-Feb-06 9:08 
QuestionHow do I convert Image to FileStream Pin
alien viper23-Feb-06 23:22
alien viper23-Feb-06 23:22 
AnswerRe: How do I convert Image to FileStream Pin
Nibu babu thomas24-Feb-06 1:15
Nibu babu thomas24-Feb-06 1:15 
AnswerRe: How do I convert Image to FileStream Pin
[DK]KiloDunse24-Feb-06 2:23
[DK]KiloDunse24-Feb-06 2:23 
GeneralRe: How do I convert Image to FileStream Pin
alien viper24-Feb-06 15:33
alien viper24-Feb-06 15:33 
GeneralRe: How do I convert Image to FileStream Pin
[DK]KiloDunse24-Feb-06 16:27
[DK]KiloDunse24-Feb-06 16:27 
Questionplease help me error occured in project Pin
vivek_pon23-Feb-06 23:12
vivek_pon23-Feb-06 23:12 

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.