Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old January 7th, 2004, 09:05 AM
Brisboy24 Brisboy24 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Australia
Posts: 1 Brisboy24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Date Request Query

I need some help with this please.

Here is my script

StrSQL = "Select RateSeasonID from RateSeason WHERE StartDateTime >= #1990-01-01 12:00:00# And EndDateTime=" & Request("EndDateTime")

I send the EndDateTime to the page from a form page as follows:

GetSeasonType.asp?EndDateTime=2020-01-05%2012:00:00

but I get the following error

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

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'StartDateTime >= #1990-01-01 12:00:00# And EndDateTime=2020-01-05 12:00:00'.

/ssl/public/GetSeasonType.asp, line 26

I am tried it with the # on each side of the date but it still will not work. What am I doing wrong please as it works when the dates are precoded in the asp page, just not when it is a request variable

Regards

Reply With Quote
  #2  
Old January 9th, 2004, 04:07 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
StrSQL = "Select RateSeasonID from RateSeason WHERE StartDateTime >= #1990-01-01 12:00:00# And EndDateTime=<#" & Request("EndDateTime") & "#"

Assuming the "Request("EndDateTime") " is an ASP command becuse it is not a VB one

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Date Request Query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway