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 November 29th, 2004, 09:44 PM
Authorized User
 
Join Date: Nov 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vanjamier Send a message via AIM to vanjamier Send a message via MSN to vanjamier Send a message via Yahoo to vanjamier
Default Asp Help ..

This is my sql statement:
sqlstr = "SELECT LoanTab.TransId, ItemTab.Item, relationTab.Quantity FROM ItemTab INNER JOIN

relationTab ON ItemTab.ItemId = relationTab.ItemId INNER JOIN

LoanTab ON relationTab.TransactionId = LoanTab.TransId INNER JOIN

UserTab ON LoanTab.BorrowerId = UserTab.Id
WHERE (UserTab.Name = &strUser& )

set rs = objConn.execute(sqlstr)

However this is the error i get:

Unterminated string constant
sqlstr = "SELECT LoanTab.TransId, ItemTab.Item, relationTab.Quantity FROM ItemTab INNER JOIN
--------------------------------------------------------------------------------------------^
__________________
Education ruined me
 
Old November 30th, 2004, 04:35 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
       You have to concatenate statements which are on diffrent lines with "_" .
This is the corrcted statement.


sqlstr="SELECT LoanTab.TransId,ItemTab.Item,relationTab.Quantity" &_
"FROM ItemTab INNER JOIN" & _

"relationTab ON ItemTab.ItemId = relationTab.ItemId INNER JOIN" & _

"LoanTab ON relationTab.TransactionId = LoanTab.TransId INNER JOIN" &_

"UserTab ON LoanTab.BorrowerId = UserTab.Id" & _
"WHERE (UserTab.Name = '" & strUser & "')"

Thanks
Suresh






Similar Threads
Thread Thread Starter Forum Replies Last Post
send parameters from asp page to an asp.net form hastikeyvan ASP.NET 1.0 and 1.1 Basics 2 March 29th, 2008 01:32 AM
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Upgrading ASP w/ SQLserver 2000 to ASP.NET w/2005 cJeffreywang ASP.NET 2.0 Basics 1 April 5th, 2007 11:30 PM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM





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