Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Database Engine Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Database Engine Error

 Post Reply Post Reply
Author
r0ck1t View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote r0ck1t Quote  Post ReplyReply Direct Link To This Post Topic: Database Engine Error
    Posted: 08 November 2003 at 6:23pm

Running the code below spits out the following error:

Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/gallery_default.asp, line 52

The code is below line 52 is in bold.

<%
Set objRs = Server.CreateObject("ADODB.RecordSet")
strSQL = "SELECT tblGallery.* FROM tblGallery ORDER BY gallery_id ASC;"
With objRs
 .CursorType = 3
 .LockType = 2
 .Open strSQL, strCon
End With

Set objRs2 = Server.CreateObject("ADODB.RecordSet")
If NOT objRs.EOF Then
 For intLoopCount= 1 to 20
 If objRs.EOF Then Exit For
  intGallery = CInt(objRs("gallery_id"))
  Response.Write(".: <a class=""lgLink"" href=""gallery_list.asp?Gallery=" & intGallery & "&GalleryTitle=" & objRs("gallery_title") & """>" & objRs("gallery_title") & "</a> :.<br>")
  strSQL2 = "SELECT TOP 5 tblGalSubCat.* FROM tblGalSubCat WHERE gal_sub_cat_of = '" & intGallery & "' ORDER BY gal_sub_cat_date DESC;"
  With objRs2
   .CursorType = 3
   .LockType = 2
   .Open strSQL2, strCon
  End With
  Response.Write("intGallery = " & intGallery & "")
  If NOT objRs2.EOF Then
   For intLoopCount2 = 1 to 5
   If objRs2.EOF Then Exit For
    Response.Write("" & vbTab & ".: <a class=""smLink"" href=""gallery_show.asp?SubCat=" & objRs2("gal_sub_cat_id") & """>" & objRs2("gal_sub_cat_title") & "</a> :.&nbsp;&nbsp;&nbsp;")
    objRs2.MoveNext
   Next
  objRs.MoveNext
  End If
 Next
End If
%>

I have triple checked the speeling of table names and data types and it is all alright. This is really bugging me, so any help would be greatly appreciated!!!

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2003 at 8:38pm
Is gal_sub_cat_of a column in tblGalSubCat?
Back to Top
r0ck1t View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote r0ck1t Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2003 at 10:00pm

Yeah it is, but it's all good, I spent the last 5 hours playing with the code anyway and now it's working and running a little bit faster.

Back to Top
 Post Reply Post Reply

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.