Print Page | Close Window

can’t see whats wrong with this code..

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1857
Printed Date: 29 March 2026 at 3:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: can’t see whats wrong with this code..
Posted By: dj air
Subject: can’t see whats wrong with this code..
Date Posted: 16 April 2003 at 12:24pm

hi guys, ive got a script(below) that updates the listings images and then the channel images and finally deletes the image details from the pictures table..... here is the code...

 

strFile = request.Querystring("File")

strSQL = "UPDATE tblListings SET "
strSQL = strSQL & "tblListings.Image =xxxxxx "
strSQL = strSQL & "WHERE tblListings.Image =" & strFile & " "
 
 
 'Write to the database
 adoCon.Execute(strSQL)

strSQL = "UPDATE tblChannel SET "
strSQL = strSQL & "tblChannel.Channel_Image=xxxxxx "
strSQL = strSQL & "WHERE tblChannel.Channel_Image = '" & strFile & "';"
       
 'Write to the database
 adoCon.Execute(strSQL)


 'Delete the topic from the database 
 'Initalise the strSQL variable with an SQL statement to get the topic from the database
 strSQL = "DELETE FROM PICTURES WHERE PICTURES.PIC_IMAGE =" & strFile
   
 'Delete the message from the database
 adoCon.Execute(strSQL)

here is the error message im getting

Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

/ASP/applications/Tv_guide/sample/tv/admin/Pic_delete.asp, line 23

ive spent hours on this code and can't see whats wrong can anyone help me with this problem...

thanx in advanced




Replies:
Posted By: dj air
Date Posted: 16 April 2003 at 2:04pm
dont worry... fixed it... ussal thing go and have a drink and come back and see what was wrong....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net