Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2005, 11:10 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Date Problem.

Hi,

I m using Access 2003 as a backend for my project with ASP.
I m storing date in access (date/time format in access)
Now I am acepting two dates from two text boxes, and have to give then in my query.But I am getting error viz. "No value given for one or more required parameters."
The query is as below:
--------------------
objRSPD.open "select * from TimeSheet where teamid = " & request.form("TeamList") & " and workdate between " & request.form("dateFrm1") & " and " & request.form("dateTo1"),objConn
--------------------
Does anybody have an answer????



 
Old June 2nd, 2005, 11:35 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hey Rupen,

What output do you get for the query if you Response.Write it?

Thanks,

Chris

 
Old June 2nd, 2005, 04:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

In access date/time values are surrounded with # when used in queries. But you seem to be missing that.

_________________________
- Vijay G
Strive for Perfection
 
Old June 3rd, 2005, 09:58 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

It is working with #.
Thanks lot!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
DATE PROBLEM ricespn Classic ASP Basics 3 October 20th, 2006 07:15 AM
Date Problem kuku SQL Server 2000 4 September 7th, 2005 08:38 PM
Date Problem tdaustin Classic ASP Basics 10 August 13th, 2004 01:43 PM
date problem hosefo81 PHP How-To 2 May 26th, 2004 11:12 AM
Date problem Larson VB How-To 2 December 30th, 2003 06:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.