Home | Advertising Info6 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Thursday, April 18, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: Adovbs.inc A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
Gins
Newbie
Newbie


Joined: July/05/2005
Location: Kuwait
Online Status: Offline
Info: 1
Added: July/05/2005 at 5:11am | IP Logged Quote Gins

I am doing an access database connectivity with asp. I have included the adovbs.inc in my asp code. and i have written codes by which i can retrieve the records from the table. But when i click on the submit button(which is there in another asp file) it gives me page cannot be displayed error. But when i remove this code and put a simple response.write,it works. Pls help me to solve this problem asap.Hope u got the scenario. This is the code::

<!-- #include file="adovbs.inc" -->

<%

Dim Conn
dim rsResults1
Dim SQLstr

Set conn = server.createobject("ADODB.Connection")

Conn.open "Library"

Set rsResults1=Server.CreateObject("ADODB.Recordset")

SQLstr="Select count(*) as mcount from user where user_name='" & Trim(request.Form("txt_name")) &"'"

rsResults1=conn.execute(SQLstr)



Edited by Gins on July/05/2005 at 5:19am
Back to Top View Gins's Profile Search for other info by Gins
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: July/06/2005 at 10:09pm | IP Logged Quote cwilliams

are you not seeing the real error perhaps ?

http://www.powerasp.com/content/hintstips/common_sense.asp

 



__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
firas_TheGeek
Newbie
Newbie
Avatar

Joined: May/27/2006
Location: Oman
Online Status: Offline
Info: 28
Added: May/27/2006 at 9:25am | IP Logged Quote firas_TheGeek

first you have oppened the connection to the databse in a wrong way. it should look like this

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

after doing that follow the pictures below to show the reall error and tell you at which line the error is accuring

to show the reall error follow the steps in the picture

and when u press OK

refresh the page, and whenever there is an error it will display the real error with the line where the error had accured

 

Hope this helps

Tell what happens with u

Best Regards



__________________
Firas S Assaad (TheGeek)
firas489@gmail.com
0096892166434
http://firas-thegeek.blogspot.com
Back to Top View firas_TheGeek's Profile Search for other info by firas_TheGeek Visit firas_TheGeek's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com