Click here to Skip to main content
15,893,668 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB Operating System Pin
biop.codeproject13-Nov-11 17:08
biop.codeproject13-Nov-11 17:08 
QuestionTCP Socket client communication without using a buffer Pin
comiteco24-Oct-11 12:33
comiteco24-Oct-11 12:33 
AnswerRe: TCP Socket client communication without using a buffer Pin
Eddy Vluggen25-Oct-11 7:19
professionalEddy Vluggen25-Oct-11 7:19 
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 
Thanks for the link. It was good to get updated with the parameter collection stuff. You are right, now it makes the code more flexible. However, I still have issues with the date. The program works fine if I don't "insert into" dataTime field but when I include this field, I get syntax error. Any tips for that?

VB
Dim mdate As Date
mdate = Convert.ToDateTime("07/08/2011 12:00:00")
Dim dbCmd As OleDbCommand = New OleDbCommand

' Parameter collection
Dim parameter As New OleDbParameter()
dbCmd.Parameters.Add("@dateTime", OleDbType.Date).Value = mdate
dbCmd.Parameters.Add("@TippingBucket", OleDbType.Integer).Value = TippingBucket


Dim cmd As String = "insert into rawClimateData (dateTime, TippingBucket) VALUES (" & mdate & " , " & TippingBucket & ")"


VB
dbCmd = New OleDbCommand(cmd, myConnection)
dbCmd.ExecuteScalar()

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 
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 

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.