Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help! Expected end of statement
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help! Expected end of statement

 Post Reply Post Reply Page  <123
Author
Greaser View Drop Down
Newbie
Newbie


Joined: 30 October 2002
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greaser Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2003 at 10:54am

Lack of effort isn't what the issue is...  believe me I have been busting my hump the last 24 hours looking, researching and trying to understand what gets single quotes and what gets double quotes.  On double quote is really easy to miss when you are LEARNING this.  Isn't this what this site is all about?

And believe me before I come looking for help I do try to answer all questons my self. 

Thanks.. 

Back to Top
Greaser View Drop Down
Newbie
Newbie


Joined: 30 October 2002
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greaser Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2003 at 11:28am

Wahoo! 

Finally it works!!!

Thank you MorningZ and ljamal for all you help, wisdom and criticism .  THANK YOU THANK YOU THANK YOU!!!!!

Have a good weekend.

 

<%

'Dimension variables

Dim adoCon                              'Holds the Database Connection Object

Dim rsUpdateEntry         'Holds the recordset for the record to be updated

Dim strTicker                             'Holds the SQL query for the database

 

'Create an ADO connection odject

Set adoCon = Server.CreateObject("ADODB.Connection")

 

'Set an active connection to the Connection object using a DSN-less connection

adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("ticker.mdb")

 

'Initialise the strSQL variable with an SQL statement to query the database

 

strTicker = "UPDATE ticker1 SET [ticText] = '" Replace( Request.QueryString("TicText"),"'","''" ) "' WHERE line = " & Cint( Request.QueryString("line"))

 

adoCon.Execute( strTicker )

 

'Reset server objects

 

Set adoCon = Nothing

 

'Return to the update select page incase another record needs deleting

Response.Redirect "tAdmin.asp"

%>

 

Back to Top
 Post Reply Post Reply Page  <123

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.