Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 January 8th, 2015, 07:55 PM
Registered User
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default where thing is > today

What is the asp code to search a date filed for all dates >= todays date?
I've tried (date()), (GetDate()), etc. Nothing seems to be working.

Code looks like this:
strSQL = "SELECT * " & _
" FROM classes "
" Where ClassDate >= " & "(Date())"
 
Old January 8th, 2015, 11:04 PM
Registered User
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Got it

The code should have looked like this:

strSQL = "SELECT * " & _
" FROM classes " & _
" Where ClassDate >= '" & Now & "'"





Similar Threads
Thread Thread Starter Forum Replies Last Post
About CSS Chapter 5 the <thing> + <thing> {} part thenetduck BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 February 7th, 2007 03:45 AM
Where can I find C# Today articles? mehdi62b Forum and Wrox.com Feedback 1 December 15th, 2004 03:31 PM
ASP Today downloads Carl Olsen Wrox Book Feedback 1 July 31st, 2003 11:00 AM
ASP Today downloads Carl Olsen All Other Wrox Books 0 July 31st, 2003 09:31 AM
C#Today \ The Eliminator qwert231 Forum and Wrox.com Feedback 1 July 21st, 2003 07:53 AM





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