473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Error 8002000e and form data

I am trying to just be able to read a database and display the number of records result fro the query. Also, I'm having trouble picking up form submitted data to put in the date part of the query. I would like to be able to put the user-submitted date in just for the yyyy-mm-dd is. If anyone can help on this, it would be greatly appreciated.

Variables:
Expand|Select|Wrap|Line Numbers
  1. <%
  2.     dim dbPH
  3.     dim rsCur
  4.     dim sdate
  5.     sdate = request.Form("input_sdate")
  6.     dim edate
  7.     edate = request.Form("input_edate")
  8.     dim psql
  9.     dim icbrian
  10.     set dbPH=Server.CreateObject("ADODB.Connection")
  11.     set rsCur = Server.CreateObject("ADODB.recordset")
  12.     dbPH.open "DSN=db;uid=id;"
  13.     rsCur.ActiveConnection = dbPH
  14. %>
  15.  
Section of code from the table
Expand|Select|Wrap|Line Numbers
  1. <td>
  2.     Brian
  3.         <%
  4.                 psql = "SELECT COUNT(*) FROM CallLog WHERE (ToFirstName = 'Incoming') AND (StartTime BETWEEN CONVERT(DATETIME, '2007-06-10 00:00:00', 102) AND CONVERT(DATETIME, '2007-06-16 23:59:59', 102)) AND (AnsweredByFirstName = 'Brian')"
  5.         set rsCur = dbph.execute(psql)
  6.         icbrian = rsCur
  7.     %>
  8. </td>
  9. <td align="right">
  10.     <%=icbrian%>
  11. </td>
  12.  
Jul 10 '07 #1
0 947

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sean Abrahams | last post by:
The following is a reprint of a message I sent to the tutor list a long time ago, that I haven't gotten around to discussing with anyone else and failed to hear a reply on the tutor list. Hoping...
1
by: dmiller23462 | last post by:
Hey guys.... I put an error-handling in my page and have it posted at the complete end of the code, see below(when people were putting in 's I was getting the delimiter errors). Great, I...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.