Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'field' phrase is not found error when trying to run for
Message
From
03/07/1998 09:20:05
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00113817
Message ID:
00114057
Views:
24
I vaguely remember an option for combo boxes to set the row source to an SQL statement. Would this method have the same result? I've never actually tried to do this, so I don't know how it works.

-Michelle



>Chuck,
>
>It would be better encapsulation to put this code in the Init event of the combobox itself:
>
>
with this
>   select ...
>   .RowSourceType = 2
>   .RowSource = "tmp"
>   .ColumnCount = 3
>endwith
>The object ought to do the work to get itself going. The form shouldn't be responsible for it.
>
>>>Select vac.nmbr,prlink.fname,prlink.lname Into cursor tmp ;
>>>Where vac.nmbr=prlink.nmbr
>>>Thisform.combo1.rowsourcetype=2
>>>Thisform.combo1.rowsource="tmp"
>>>Thisform.combo1.columncount=3
>>
>>Thanks. Do I place this code in the InitEvent of the form?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform