You can't "ask the user to type in a value" in SQL Server. There's no front end. SQL Server is ALL back-end. The front end has to do the asking and pass the value to the server in a parameter or using constructed SQL.
Look up VB examples using the ADODB.Command object and parameters, with the parameters in the query represented by question marks, ala
"select * from Orders where OrderID = ?"
adocommand.parameters.add adocommand.createparameter("orderid", ..., 12345)
This is actually expanded to something like
exec sp_executesql N'select * from Orders where OrderID = @P1', N'@P1 int', 12345
Which brings up stored procedures
Code:
CREATE PROCEDURE SelectOrder @OrderID int
AS
select * from Orders where OrderID = @OrderID
Now go do some searches with Google. This information should be enough to get you started. You have a lot to learn, but the information you need is out there!
No one should have to tell you much more in this thread until you've studied a little and can ask more specific questions.
[COLOR=#aa88aa black]
Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.[/color]