Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 18th, 2008, 11:01 AM
Registered User
 
Join Date: Apr 2008
Location: montijo, montijo, Portugal.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Almost crazy

Im geting the following error

Microsoft JET Database Engine (0x80040E14)
Extra ) in query expression '(((Oferta.OfertaID =));'



please see the code above concerning that error:

           "WHERE (((Oferta.OfertaID)=" & Request.QueryString ("OfertaID") & "));"

Can anyone explain me where´s the problem?

Regards,

trevo4f

uitr
  #2 (permalink)  
Old May 15th, 2008, 09:59 AM
Registered User
 
Join Date: May 2008
Location: Huntley, IL
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure if you need the parentheses at all. Do you get an error when you remove them? Maybe try the following:

"WHERE Oferta.OfertaID = " & Request.QueryString("OfertaID") & ";"
  #3 (permalink)  
Old May 15th, 2008, 11:22 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The problem is the query string value is coming back empty. This:

"WHERE (((Oferta.OfertaID)=" & Request.QueryString ("OfertaID") & "));"

is equating to:
(((Oferta.OfertaID =));

Which is invalid SQL.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Crazy Query... devendar SQL Server 2005 4 July 19th, 2007 12:51 AM
Crazy scrollbar issue Teessider_2000 CSS Cascading Style Sheets 3 August 21st, 2006 07:41 AM
session.use_trans_sid is driving me crazy!! Snib Pro PHP 6 July 24th, 2004 04:51 AM
Fonts going crazy (win32 API GUI) afradley C++ Programming 0 April 10th, 2004 09:09 AM
Crazy Thing happening Kenny Alligood Access VBA 10 February 17th, 2004 12:26 PM



All times are GMT -4. The time now is 01:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.