Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate data thru query in list box
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Populate data thru query in list box
Miscellaneous
Thread ID:
00663425
Message ID:
00663425
Views:
54
I am using a list box where i want to display the records using the following query.
Only the matching records need to appear in the list box.

Can you please advice me how to show the records in the list box.


SELECT * FROM sub WHERE sub.project_no = this.project_no.value
AND sub.workpkg_no = this.workpkg_no.value
AND DELETED() = .f. ORDER BY project_no, workpkg_no



For list box i writing this code.

WITH thisform.list1

.RowSourceType = 0
.RowSource = "sub.project_no,workpkg_no,sub_sec,sub_para,sub_seq,sub_title"
.RowSourceType = 6
.refresh()
.setfocus()
ENDWITH



Thank you Very much.
Next
Reply
Map
View

Click here to load this message in the networking platform