Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 10-06-2004, 09:32 AM Update
frik's Avatar
Average Talker

Posts: 26
Location: SOuth Africa
Trades: 0
I have the folowing code
Dim rateCount
rateCount = objRS("rating")
rateCount = rateCount + 1

Dim strUp
strUp = "UPDATE application SET rating =" & rateCount & "Where ID =" & modid
objConn.execute(strUp)

1 must be added to rateCount and updated to the database. When I run the code I get the following error

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '1Where ID =11'.
/VipModels/vote.asp, line 40

Please help
frik is offline
Reply With Quote
View Public Profile Visit frik's homepage!
 
 
Register now for full access!
Old 10-06-2004, 09:45 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Hi,

You need a space just before WHERE in your SQL Statement
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-06-2004, 09:48 AM Thank You
frik's Avatar
Average Talker

Posts: 26
Location: SOuth Africa
Trades: 0
Thank You Minaki
frik is offline
Reply With Quote
View Public Profile Visit frik's homepage!
 
Reply     « Reply to Update
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11386 seconds with 12 queries