473,396 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL update: Expected end of statement

I just joined this forum so I am not sure if this topic has already been covered in previous posts.

I am trying to write code for table update in my web app. I keep getting the following error:

Source line: Set Poll = "&p_poll&", Result = "&p_result&"
Description: Expected end of statement

Here is the code I am using:

Update tblCandidate
Set Poll = "&p_poll&", Result = "&p_result&"
where cadidateID = "&p_candidateID&";

can anyone shed some light?

Thanxs
rbuaoka
Nov 15 '14 #1
0 2205

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matt | last post by:
When the ASP statement end with a _ character, then the next line cannot have comment ' character. Is that correct? Since I encountered the following error: Microsoft VBScript compilation...
2
by: ajay | last post by:
How to write a single update sql statement to update different set of attributes of a table. In other words what will be the value of indicator variables to ignore updates of some attributes in a...
1
by: mirth | last post by:
I would like to update a decimal column in a temporary table based on a set of Glcodes from another table. I search for a set of codes and then want to sum the value for each row matching the...
1
by: Nono | last post by:
Hello, I am trying to update records in my database from excel data using vba editor within excel. In order to launch a query, I use SQL langage in ADO as follwing:...
7
by: sea# | last post by:
I'm writing an app to keep results of survey in DB. Using MS Access. This method is writing answers to DB. Each survey has one question. Each time an answer arrive to method, I check to which...
3
by: Manikandan | last post by:
Hi, I have table with three columns as below table name:exp No(int) name(char) refno(int) I have data as below No name refno 1 a 2 b 3 c
1
by: patriciashoe | last post by:
Everything I read indicates the following statement should work. What happens is that any field after the where clause gets treated as a parameter by Access. Even if I supply the data the query...
16
by: rebecky via AccessMonster.com | last post by:
Can anyone help with this statement? I get a syntax error message.....not good at this at all. Thanks DoCmd.RunSQL "Update JOTable" _ & "INNER JOIN ON JOTable.JOID = . JOID " _ & "Set...
0
by: MAURICE ELLIS | last post by:
Why do I get a (3,2) expected statment error here? 'CATHY: ' Initialise: LET Dictionary=1000 Dim Context$(Dictionary) Dim Alternatives$(Dictionary) Let EmptyRow = 0 Let...
1
by: buri22 | last post by:
I have this error : Microsoft VBScript compilation error '800a0400' Expected statement /amministrazione/add2_sponsor.asp, line 11 <% ^
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.