Can you make a simple drop down menu using data from an SQL source without having to make multiple datawindows and retrieving them all the time?
Below is how you would do it with a few lines of code in C#, can it be done quickly like this in PB?
using (ODBC.connect = new OdbcConnection(ODBC.connectionString))
{
try
{
ODBC.connect.Open();
OdbcCommand command = new OdbcCommand("SELECT MyGroup FROM UserGroups", ODBC.connect);
OdbcDataReader dataReader = command.ExecuteReader();
while (dataReader.Read())
{
combobox_UserGroup.Items.Add(dataReader[0]);
}
}
catch (OdbcException exception)
{
MessageBox.Show(exception.Message);
}
If your SQL statements provide same resultset structure (same columns but different set of rows) you may simply replace the SELECT statement of an existing DataWindow. DDDW can be secondary DW to a DataStore via ShareData so even things you can't do directly on DDDW you can still provide albeit a little more code.