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

Using "Splashscreen" Forms in Visual Foxpro

Status
Not open for further replies.

nikdiva

Programmer
Jul 27, 2001
17
US
Hello Everyone,
I am currently attempting to refresh my knowledge of Visual Foxpro 6 after being away from programming in it for over a year (MS Access is my preferred RDBMS). I am trying to use a splashscreen where a user enters a search value and then selects what form it wants to go to using this criteria. I want the next screen to open showing data filtered by the user's input on the splashscreen. Could I do this using a query that prompts for input? Or some kind of global variable?

 
Try looking in the help files for information on a Parameterized View. The other easy method is to use macro substitution in an SQL Select statement, like this:
[tt]
cMyFilter="myField='HELLO'"
SELECT * FROM myTable WHERE &cMyFilter ;
INTO CURSOR myTemp
[/tt]
Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top