Click here to Skip to main content
15,506,846 members
Home / Discussions / Database
   

Database

 
Questionhow can reporting in this Situation Pin
karimkpg26-Jan-13 3:38
karimkpg26-Jan-13 3:38 
AnswerRe: how can reporting in this Situation Pin
Sandeep Mewara26-Jan-13 7:02
mveSandeep Mewara26-Jan-13 7:02 
QuestionQuery to concatenate multiple rows based on sequence in results set Pin
Alex Lush24-Jan-13 23:43
Alex Lush24-Jan-13 23:43 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pin
Eddy Vluggen25-Jan-13 2:51
professionalEddy Vluggen25-Jan-13 2:51 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pin
Shameel25-Jan-13 4:20
professionalShameel25-Jan-13 4:20 
GeneralRe: Query to concatenate multiple rows based on sequence in results set Pin
Alex Lush25-Jan-13 4:30
Alex Lush25-Jan-13 4:30 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pin
mmccarth25-Jan-13 6:21
mmccarth25-Jan-13 6:21 
QuestionSyntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro23-Jan-13 15:40
IgaBaro23-Jan-13 15: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 Pin
Mycroft Holmes23-Jan-13 16:02
professionalMycroft Holmes23-Jan-13 16:02 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro23-Jan-13 16:25
IgaBaro23-Jan-13 16:25 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult23-Jan-13 16:37
professionalPIEBALDconsult23-Jan-13 16:37 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro23-Jan-13 17:16
IgaBaro23-Jan-13 17:16 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult23-Jan-13 17:26
professionalPIEBALDconsult23-Jan-13 17:26 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro23-Jan-13 17:58
IgaBaro23-Jan-13 17:58 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult23-Jan-13 17:59
professionalPIEBALDconsult23-Jan-13 17:59 
AnswerRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
Richard MacCutchan24-Jan-13 0:22
mveRichard MacCutchan24-Jan-13 0:22 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 6:48
professionalPIEBALDconsult24-Jan-13 6:48 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 6:54
IgaBaro24-Jan-13 6:54 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 7:00
professionalPIEBALDconsult24-Jan-13 7:00 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 8:11
IgaBaro24-Jan-13 8:11 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
PIEBALDconsult24-Jan-13 8:56
professionalPIEBALDconsult24-Jan-13 8:56 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
Richard MacCutchan24-Jan-13 23:35
mveRichard MacCutchan24-Jan-13 23:35 
GeneralRe: Syntax error (Missing Operator) in Query expression ':0:1 Pin
IgaBaro24-Jan-13 6:51
IgaBaro24-Jan-13 6:51 
Questioncreated tables not dropped in a transaction rollback Pin
Danzy8320-Jan-13 17:13
Danzy8320-Jan-13 17:13 
AnswerRe: created tables not dropped in a transaction rollback Pin
Mycroft Holmes20-Jan-13 17:32
professionalMycroft Holmes20-Jan-13 17:32 

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.