Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RowSource Type 3-SQL Statement
Message
From
24/11/2003 07:33:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00852895
Message ID:
00852897
Views:
12
>I have a dropdown list combobox with the following SQL statement as the RowSourceType:
>
>SELECT * FROM metadata NOCONSOLE WHERE datafield = "cboRef"
>
>The Table "metadata" is placed in the Form's DataEnvironment. When I start the form, the results of this SQL statement appear in a browse window just before the form displays. How do I avoid this? I thought that's what the "NOCONSOLE" instruction is for. I know I can have the result set go to a cursor. But I prefer it not to, as I will have several other ComboBoxes using the same "metadata" table and similar SQL statements as their RowSourceType and I don't want all these temporary cursors being opened if I can avoid it.
>
>Thank You.

You should specify a destination :

SELECT * FROM metadata WHERE datafield = "cboRef" into cursor crsCombo

PS: With rowsource SQL you can't avoid a cursor to be opened.
If you are using a private datasession this is not a problem IMHO.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform