CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Try to search by date range relative to today's date

Print topic Send  topic

Author Message
maggiemel

Posts: 75
Posted: 01/10/2007, 10:28 AM

Hello, all. I'm trying to offer my user's a choice whereby they can view records within the last week, month or year. They would like to choose using radio buttons.

I'm having a hard time figuring out how to construct the SELECT statement with a date parameter. I set up the values for my radio buttons to offer Week = 7, Month = 30, Year = 365, but I have no idea how to build the SELECT to do a DATEDIFF calculation (or some other equivalent method).

I ran across this post from Edd -- I tried to reconstruct this method using DATEDIFF, but I'm clearly doing something wrong.

http://forums.codecharge.com/posts.php?post_id=74903

Hopefully somebody can elaborate on this proposed explanation?

Many thanks in advance.
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.