Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 May 27th, 2004, 04:02 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I tried the "Dim SQL2 As String," I get the error message below.

Microsoft VBScript compilation (0x800A0401)
Expected end of statement

 
Old May 27th, 2004, 04:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

That should not be used in ASP. It is VB code. Please see my previous post on this.

_________________________
-Vijay G
Strive for Perfection
 
Old May 27th, 2004, 04:23 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will play around with the single and double quotes. I will update you tomorrow. Thank you.

Leon

 
Old May 28th, 2004, 09:59 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ViJay,

I think I finally have my problem solved. You were right; it does have something to do with my double and single codes. I used "escape sequence" to add a double quotes at the start and end of the query string. But what i forgot is that if I put the string in a variable, and when i reference them, I don't need to have double quotes. Anyway, sorry to have caused you so much trouble. Thank you soooooooooooo very much for all your help.

Leon

 
Old May 28th, 2004, 12:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Leon,

Yes. That's what I was suspecting, as asked in one of my posts.
Quote:
quote:if your response.write strLeon gave the output as
"select ....."
then you got to remove that from the string, is what I could think off now.
Also when searched on the net regarding your error message, I got some stuffs related to Quotes being misused there, that caused the error.

Anyways, it is a learning again. Good luck.
Cheers!

_________________________
-Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
max length property of multiline text box MunishBhatia ASP.NET 2.0 Professional 5 June 14th, 2007 01:55 AM
Max length venkata MySQL 2 May 3rd, 2006 12:39 AM
finding max string length if more than 2 elements srini XSLT 4 April 4th, 2006 01:08 PM
max length of textbox? JelfMaria VB How-To 3 May 10th, 2005 04:02 PM
string to "long long" without using atoll sarraju C++ Programming 2 August 4th, 2004 07:19 AM





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