Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
michpaust
Starting Member
21 Posts |
Posted - 2005-04-12 : 11:34:24
|
| I am in the process transferring some access queries over to T-SQL and I am having a little problem. In the access query there was a pop-up box that allowed the user to enter the amt of days late that he/she wanted to base a report on. The line was as followswhere(((POhead.Status)<>"Hold") AND ((POitem.CurrentDate)<=Date()-nz([Days Late],0)))Is there any possible way to incorporate that into an T-SQL statement where the user will input the number of says late and get the required result. I am truly stumped on this one. I have searched forums, read online books,etc and I think I'm either looking in the wrong place or that what I am trying to do is just not doable. I'll appreciate any input. |
|
|
mr_mist
Grunnio
1870 Posts |
Posted - 2005-04-12 : 11:52:06
|
| It's no doable within t-sql, you need to add it as a parameter that someone can input into your front end, and then pass the parameter through to a stored procedure.-------Moo. :) |
 |
|
|
|
|
|