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!

Listbox RowSource

Status
Not open for further replies.

BiggsWolf

Programmer
Aug 23, 2002
21
0
0
CA
I am new to FoxPro and have what will likely be a simple question:
When a use a listbox and set it’s RowSourceType to “4 – Query (.QPR)” and then set it’s RowSource to a FoxPro query, every time I run it a query window pops up. How do I populate a list box from a query with out a query windows appearing?

Thank-you
 
send the query to a cursor

select your fields from mytable into cursor mycursor

by sending the return results into a curosr, change the rowsourcetype to alias then assign the cursor name (mycursor) as the rowsource. Attitude is Everything
 
1. Create a query with the query designer and make sure you specify a destination ( a cursor)
2. In your ListBox make the rowsourceType = 4
3. Make the Rowsource your query .qpr file (fullpath required)

Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top