Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calendar in VS2005 ASP to query SQL table

Status
Not open for further replies.

sarad1978

Technical User
Jan 16, 2003
9
US
I have a ASP set up that displays info from a sql table in a grid. Below is the select statement. I use VS 2005 and just went though the wizards to set up the data source.
This works fine but instead of it pulling just the current date I would like it to match based on a date the user picks preferrably from the calendar I have on the page. But I have no clue how to do this or if it's even possible.
I'd would really appreciate any help.

Thanks,
Sara


select club,count(ordernum) as Total_Pieces,sum(tblUSPSBasicRate.rate) as TotalCost, shipdate
FROM tblshipments INNER JOIN
tblUSPSBasicRate ON tblshipments.wt = tblUSPSBasicRate.wt
where shipvia='014' AND datepart(day,shipdate)=datepart(day,getdate())and datepart(month,shipdate)=datepart(month,getdate()) and datepart(year,shipdate)=datepart(year,getdate())
group by club,shipdate
 
This forum concentrates on Classic ASP

The new-fangled ASP.NET has its own forum: forum855
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top