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 October 20th, 2004, 05:01 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default Again syntax error

Hello Guys, Again the problem in syntax
    strUpdate = "update tblCustRate set dtRateFrom =" &ndateFrom&_ ",dtRateTo = " &ndateUntil&_ ",decHourlyRate=" &nHourlyRate&_ where "iEmpID =" &iEmpID_ and "itaskiD="

  The problem is in the where statement it sometimes complains for mismatch string and expected end of statement. I get confused with these. Can you tell me what is the best way to learn these things. I will really appreciate comments and suggestions.
Thanks
shoakat


 
Old October 20th, 2004, 06:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Why is that you are using _??? That is used only when you want to continue the code on the same line to next line.
Code:
strUpdate = "update tblCustRate set dtRateFrom ='" & ndateFrom & "', dtRateTo = '" & ndateUntil & "', decHourlyRate="  & nHourlyRate & " where iEmpID =" & iEmpID & " and " itaskiD=" & variablename
Your statement is incomplete where it is marked red above.

Check that at your end.


_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_ELSE in /h vipin k varghese BOOK: XSLT Programmer's Reference, 2nd Edition 4 September 29th, 2011 01:19 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
VB Error: Syntax Error or Access Violation codehappy VB How-To 7 October 3rd, 2007 05:41 PM
Compile error: Syntax error: & Else without HELP Corey VB How-To 2 April 21st, 2006 03:25 PM





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