I am having trouble assigning a default value to a list box control that I have which contains two columns.
The code I am using in the form_open is as follows:
strsql = " SELECT ltp_nme, ltp "
strsql = strsql & " FROM ltp "
strsql = strsql & " WHERE YEAR = " & iYear
strsql = strsql & " ORDER BY ltp desc"
chart_LTP.RowSourceType = "Table/Query"
chart_LTP.RowSource = strsql
chart_LTP = chart_LTP.Column(0, 0) + ";" + chart_LTP.Column(1, 0)
The chart_LTP control is assigned the values correctly when I go throught the debugger, but they do not display on the form (it is blank). For a single column list box I am having no problems, but this has two columns, the column count is 2 and the bound column is 2.
I can select the values in the list box with no problems, it's just the default that isn't showing up.
Any ideas would be greatly appreciated.
The code I am using in the form_open is as follows:
strsql = " SELECT ltp_nme, ltp "
strsql = strsql & " FROM ltp "
strsql = strsql & " WHERE YEAR = " & iYear
strsql = strsql & " ORDER BY ltp desc"
chart_LTP.RowSourceType = "Table/Query"
chart_LTP.RowSource = strsql
chart_LTP = chart_LTP.Column(0, 0) + ";" + chart_LTP.Column(1, 0)
The chart_LTP control is assigned the values correctly when I go throught the debugger, but they do not display on the form (it is blank). For a single column list box I am having no problems, but this has two columns, the column count is 2 and the bound column is 2.
I can select the values in the list box with no problems, it's just the default that isn't showing up.
Any ideas would be greatly appreciated.