Click here to Skip to main content
15,901,505 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSyntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Amanjot23-Oct-11 15:17
Amanjot23-Oct-11 15:17 
AnswerRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 15:34
protectorAspDotNetDev23-Oct-11 15:34 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Amanjot23-Oct-11 16:03
Amanjot23-Oct-11 16:03 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 16:10
protectorAspDotNetDev23-Oct-11 16:10 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Amanjot25-Oct-11 16:45
Amanjot25-Oct-11 16:45 
AnswerRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev25-Oct-11 17:02
protectorAspDotNetDev25-Oct-11 17:02 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Amanjot30-Oct-11 6:05
Amanjot30-Oct-11 6:05 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev30-Oct-11 8:43
protectorAspDotNetDev30-Oct-11 8:43 
You still aren't getting the point of parameters. You are 1) adding the parameters and 2) adding the values into the command string. You are duplicating your effort, and if you looked at that Bobby Tables example or Googled "SQL injection" you'd know why you shouldn't be adding values to the command string using string concatenation.

Look at another example. Read that article. Also, pay close attention to what is placed in the command string... you'll notice it isn't the actual values. You should also notice from the reading material that Access accepts 2 different formats for parameters in the command string that you can choose from.
Somebody in an online forum wrote:
INTJs never really joke. They make a point. The joke is just a gift wrapper.

GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Amanjot31-Oct-11 9:53
Amanjot31-Oct-11 9:53 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev31-Oct-11 19:21
protectorAspDotNetDev31-Oct-11 19:21 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy7-Nov-11 9:28
Hypermommy7-Nov-11 9:28 
AnswerRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev7-Nov-11 9:38
protectorAspDotNetDev7-Nov-11 9:38 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy7-Nov-11 10:01
Hypermommy7-Nov-11 10:01 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy7-Nov-11 10:16
Hypermommy7-Nov-11 10:16 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev7-Nov-11 10:43
protectorAspDotNetDev7-Nov-11 10:43 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy8-Nov-11 3:44
Hypermommy8-Nov-11 3:44 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 15:37
protectorAspDotNetDev23-Oct-11 15:37 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Luc Pattyn23-Oct-11 15:50
sitebuilderLuc Pattyn23-Oct-11 15:50 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 16:10
protectorAspDotNetDev23-Oct-11 16:10 
QuestionTrouble creating a generic function Pin
Clark Kent12320-Oct-11 4:39
professionalClark Kent12320-Oct-11 4:39 
QuestionRe: Trouble creating a generic function Pin
Clark Kent12320-Oct-11 7:48
professionalClark Kent12320-Oct-11 7:48 
AnswerRe: Trouble creating a generic function Pin
Dave Kreskowiak21-Oct-11 2:05
mveDave Kreskowiak21-Oct-11 2:05 
GeneralRe: Trouble creating a generic function Pin
Clark Kent12321-Oct-11 2:29
professionalClark Kent12321-Oct-11 2:29 
QuestionHow to automatically Read and update Access database usin VB Pin
Member 808717520-Oct-11 4:37
Member 808717520-Oct-11 4:37 
SuggestionRe: How to automatically Read and update Access database usin VB Pin
DaveAuld20-Oct-11 5:35
professionalDaveAuld20-Oct-11 5:35 

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.