Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2008, 11:01 AM
Registered User
 
Join Date: Apr 2008
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
 
Old May 15th, 2008, 09:59 AM
Registered User
 
Join Date: May 2008
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") & ";"
 
Old May 15th, 2008, 11:22 AM
Wrox Author
 
Join Date: Oct 2005
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
================================================== =========





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.