Hi all,
I am trying to use an ADODB recordset as a rowsource for a combo box. I can loop through the recordset and write the values to a table just fine, but that is not what I need to do. Here is the code:
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open "Driver=iSeries Access ODBC Driver;System = Server1;", "uname", "pword"
cn.CursorLocation = adUseClient
strSQL = "SELECT LIBRARY.LOGFILE.* FROM LIBRARY.LOGFILE"
rs.Open strSQL, cn, adOpenStatic, adLockReadOnly
All of that works - now how do I use it?
If someone could just get me going in the right direction as I am not very proficient w/ADO.
Thanks a ton in advance!!
I am trying to use an ADODB recordset as a rowsource for a combo box. I can loop through the recordset and write the values to a table just fine, but that is not what I need to do. Here is the code:
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open "Driver=iSeries Access ODBC Driver;System = Server1;", "uname", "pword"
cn.CursorLocation = adUseClient
strSQL = "SELECT LIBRARY.LOGFILE.* FROM LIBRARY.LOGFILE"
rs.Open strSQL, cn, adOpenStatic, adLockReadOnly
All of that works - now how do I use it?
If someone could just get me going in the right direction as I am not very proficient w/ADO.
Thanks a ton in advance!!