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

Search records using filter?

Status
Not open for further replies.

august

MIS
Aug 24, 2000
150
0
0
PH
How can i search record using combo drop-down list with a text to search using a filter and output to a grid? what is the proper way of doing it? Thanks in advance!

August [sig][/sig]
 
I believe the question is how to Display the results. Try this.

*build your filter condition from the users input
m.so_where =" WHERE table.salesnum = 21616"

*build your SQl statement
msql = "SELECT alloy, form, pieces"
msql=msql+" FROM Database!table"
msql=msql+" NOCONSOLE INTO CURSOR tmpSales"
msql=msql+ m.so_where
msql=msql+" ORDER BY table.item"

*display your results in Grid
This.grdInq.Enabled = .T.
This.grdInq.Visible = .T.
This.grdInq.recordSource = msql
This.grdInq.Refresh()
[sig]<p>David Kirchne<br><a href=mailto:davidkirchner@yahoo.com>davidkirchner@yahoo.com</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top