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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input from user

Status
Not open for further replies.

rose88

MIS
Joined
Jun 12, 2010
Messages
1
Location
IL
I want to have input from user
so I did something like this:

declare @param int
SELECT dbo.tblOrders.MedicineNum
FROM dbo.tblOrders INNER JOIN
dbo.tblMedicine ON dbo.tblOrders.MedicineNum = dbo.tblMedicine.MedicineNum
GROUP BY dbo.tblOrders.MedicineNum
HAVING (COUNT(dbo.tblOrders.MedicineNum) > @param)[/color blue]

but it doesn't show me a box or anything to write an input!!!
can anyone help me with this?
 
SQL Server isn't like Access where you run an SQL Statement and a dialog pops up to ask for parameter values.

You have to write a front-end program (in .NET or some other programming language) to be a GUI for your users.
 
You could run it from Excel instaed of writing an application and get prompts from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top