Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement in Comboboxes
Message
From
31/10/2001 05:10:07
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
To
31/10/2001 03:08:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00575492
Message ID:
00575513
Views:
24
Hi,

Try to call a function in the text.valid event- thisform.refresh_combo()
e.g.
**** THISFORM.REFRESH_COMBO *****
LPARAMETER sTable
WITH THISFORM.combo1
.RowSourceType=0
.RowSource = 'Select * from '+sTable+' into cursor temp1'
.RowSourceType=3
.Refresh()
ENDWITH


>Hi All,
> I have a combobox that's supposed to display values from one of two tables depending on a condition from a textbox on the same form. Soemthing like:
>
>IF THISFORM.text1.VALUE = 1
> SELECT table1
> ELSE
> IF THISFORM.text1.VALUE = 2
> SELECT table2
>
>How do I phrase my SQL on the RowSource for this to work? Thanks in advance for all your answers.
>
>Richard.
Previous
Reply
Map
View

Click here to load this message in the networking platform