Click here to Skip to main content
       

Database

 
QuestionSMO Retrieve Table Record Pinmembersavbace28-Jan-13 2:31 
AnswerRe: SMO Retrieve Table Record PinmvpSandeep Mewara28-Jan-13 2:42 
AnswerRe: SMO Retrieve Table Record Pinmembersavbace28-Jan-13 2:55 
QuestionRe: SMO Retrieve Table Record PinmvpEddy Vluggen28-Jan-13 3:21 
AnswerRe: SMO Retrieve Table Record PinmvpSandeep Mewara28-Jan-13 3:22 
AnswerRe: SMO Retrieve Table Record Pinmembersavbace28-Jan-13 3:40 
Questionhow can reporting in this Situation [modified] Pinmemberkarimkpg26-Jan-13 2:38 
AnswerRe: how can reporting in this Situation PinmvpSandeep Mewara26-Jan-13 6:02 
QuestionQuery to concatenate multiple rows based on sequence in results set PinmemberAlex Lush24-Jan-13 22:43 
AnswerRe: Query to concatenate multiple rows based on sequence in results set PinmvpEddy Vluggen25-Jan-13 1:51 
AnswerRe: Query to concatenate multiple rows based on sequence in results set PinmemberShameel25-Jan-13 3:20 
GeneralRe: Query to concatenate multiple rows based on sequence in results set PinmemberAlex Lush25-Jan-13 3:30 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pinmembermmccarth25-Jan-13 5:21 
QuestionSyntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro23-Jan-13 14:40 
Hallo Forum,
 
I am new to this forum and I would like to get your help. I am having issues with this code.
 
HERE is the error I am getting: Syntax error (Missing Operator) in Query expression 'Blush | :O :1
 

Dim CustomerTrans As OleDb.OleDbTransaction = Nothing
Dim MyConnection As OleDb.OleDbConnection = Nothing
 
'Creat connection and the transactions Object
 
Try
MyConnection = New OleDb.OleDbConnection(My.Settings.dbConnectionString)
MyConnection.Open()
'Begin Transaction
CustomerTrans = Myconnection.BeginTransaction
 
'Insert the New receipt
Dim SQL As String = "Insert into Receipts (ReceiptDate,ReceiptTotal) values (Blush | :O :1)"
Dim CMD1 As New OleDb.OleDbCommand
CMD1.Connection = Myconnection
CMD1.Transaction = CustomerTrans
CMD1.CommandText = SQL
CMD1.Parameters.AddWithValue("Blush | :O ", Now.Date)
CMD1.Parameters.AddWithValue(":1", TotalPriceTxt)
 
CMD1.ExecuteNonQuery()
CMD1.Dispose()
 
i AM Using Access 2007 and I set t
 
ANY HELP GIVEN IS HIGHLY APPRECIATED. i TRIED ALMOST ALL I CAN THINK OF.
 
Thank you in advance.

AnswerRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberMycroft Holmes23-Jan-13 15:02 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro23-Jan-13 15:25 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult23-Jan-13 15:37 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro23-Jan-13 16:16 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult23-Jan-13 16:26 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro23-Jan-13 16:58 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult23-Jan-13 16:59 
AnswerRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmvpRichard MacCutchan23-Jan-13 23:22 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult24-Jan-13 5:48 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro24-Jan-13 5:54 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult24-Jan-13 6:00 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro24-Jan-13 7:11 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberPIEBALDconsult24-Jan-13 7:56 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmvpRichard MacCutchan24-Jan-13 22:35 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 PinmemberIgaBaro24-Jan-13 5:51 
Questioncreated tables not dropped in a transaction rollback PinmemberDanzy8320-Jan-13 16:13 
AnswerRe: created tables not dropped in a transaction rollback PinmemberMycroft Holmes20-Jan-13 16:32 
AnswerRe: created tables not dropped in a transaction rollback PinmvpEddy Vluggen21-Jan-13 2:06 
AnswerRe: created tables not dropped in a transaction rollback PinmemberShameel21-Jan-13 22:08 
GeneralRe: created tables not dropped in a transaction rollback Pinmemberjschell22-Jan-13 8:16 
GeneralRe: created tables not dropped in a transaction rollback PinmemberShameel22-Jan-13 23:46 
QuestionChange the language for Sql Server 2008 PinmemberThaer Hamael19-Jan-13 1:27 
AnswerRe: Change the language for Sql Server 2008 PinmemberPIEBALDconsult19-Jan-13 5:29 
AnswerRe: Change the language for Sql Server 2008 PinmemberMycroft Holmes19-Jan-13 14:19 
Questionsql server 2008 PinmemberKapilkp17-Jan-13 23:25 
QuestionRe: sql server 2008 PinmvpEddy Vluggen18-Jan-13 1:30 
GeneralRe: sql server 2008 PinmemberKapilkp20-Jan-13 23:06 
GeneralRe: sql server 2008 PinmvpEddy Vluggen21-Jan-13 1:15 
GeneralRe: sql server 2008 PinmemberPIEBALDconsult21-Jan-13 4:57 
AnswerRe: sql server 2008 PinmemberPIEBALDconsult18-Jan-13 4:01 
Questionsql server Pinmemberyogika17-Jan-13 19:15 
AnswerRe: sql server PinmvpEddy Vluggen18-Jan-13 1:37 
AnswerRe: sql server PinmemberRichard Deeming18-Jan-13 1:37 
GeneralRe: sql server PinmvpEddy Vluggen18-Jan-13 2:13 
GeneralRe: sql server PinmemberRichard Deeming18-Jan-13 2:18 
GeneralRe: sql server PinmvpEddy Vluggen18-Jan-13 2:22 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 16 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid