J
jerryk
Hi,
I am migrating an Access Application to an SQL Server. One of the
issues I have run into is that my combo boxes do not work correctly.
The combo box is unbound and uses a query as it's RowSource. The query
(called ddQry) is in the same DB as the form. The query's SQL is :
SELECT ID, NAME from tblCode where codetype='flavor'
The relevant properties on the combo are:
RowSourceType: Table/Query
Row Source: ddQry
ColumnCount: 2
Column Widths: 0";2"
The results of the query are of the form:
1, Orange
2, Mint
3, Vanilla
What happens is when tblCode is linked to a table in an Access
database, the combo box works as expected. However, when I link to a
table in SQL server, all items show up when you drop down the list, but
after you select one the combo is empty. However, if you read the
value of the combo it is properly set. It is just that nothing is
displayed. Also, if you change the column widths to display the first
column the values do show after selection, but as expected just the
number is displayed.
Any thoughts?
Thanks,
Jerry
I am migrating an Access Application to an SQL Server. One of the
issues I have run into is that my combo boxes do not work correctly.
The combo box is unbound and uses a query as it's RowSource. The query
(called ddQry) is in the same DB as the form. The query's SQL is :
SELECT ID, NAME from tblCode where codetype='flavor'
The relevant properties on the combo are:
RowSourceType: Table/Query
Row Source: ddQry
ColumnCount: 2
Column Widths: 0";2"
The results of the query are of the form:
1, Orange
2, Mint
3, Vanilla
What happens is when tblCode is linked to a table in an Access
database, the combo box works as expected. However, when I link to a
table in SQL server, all items show up when you drop down the list, but
after you select one the combo is empty. However, if you read the
value of the combo it is properly set. It is just that nothing is
displayed. Also, if you change the column widths to display the first
column the values do show after selection, but as expected just the
number is displayed.
Any thoughts?
Thanks,
Jerry