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!

Parameters in a view

Status
Not open for further replies.

genevi

Technical User
Jun 28, 2000
4
CA
Is it possible to use parameters in a view?<br><br>For exemple in the criteria of a field I put:<br><br>LIKE N'[* &forms!searchact!searchbox&*]'<br><br>searchbox is a textbox<br>I want the input parameter to be the value in searchbox<br><br>Thanks <br>genevi
 
You should be able to use a parameter seeing as the view is defined by a standard SELECT statement<br><br><FONT FACE=monospace>CREATE VIEW myView (col1,col2,col3)<br>AS<br>SELECT col1,col2,col3 FROM aTable<br>WHERE col1 LIKE @myParam</font><br><br>The nuts and bolts may be different if your parameter is from a VB or ASP front-end, but it should be essentially the same.... <p> <br><a href=mailto: > </a><br><a href= home</a><br>
 
But does the parameter need to be declared as in a stored procedure to be an INPUT or an OUTPUT parameter and of what type (e.g. Integer, VarChar, etc.)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top