Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP & Where clause

Posted on 1999-06-29
3
Medium Priority
?
159 Views
Last Modified: 2013-12-25
I am getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'dtTimeStamp = 6/29/99 8:13:52 AM'.

/survey/SubmitUser.asp, line 11

All I am trying to do is a simple where clause
sSql1 = "SELECT UserID FROM SurveyAnswers WHERE dtTimeStamp = " & TimeStamp
Set rsUserID = OBJdbConnection.Execute(sSql1)
Any ideas would be great.

Thanks
0
Comment
Question by:yolish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
siabod earned 200 total points
ID: 1863592
try this :

sSql1 = "SELECT UserID FROM SurveyAnswers WHERE dtTimeStamp = #" & TimeStamp &"#"

0
 

Expert Comment

by:RandomTask
ID: 1863593
Doesn't it require the date value to be inside some inverted commas?
0
 

Author Comment

by:yolish
ID: 1863594
Thanks it worked
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question