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);
}