D
DracKewl
OK - This one has me stumped.
I need a way to filter out some of the columns from a recordset and load
them into a listbox. The reason why I don’t SELECT exactly what I need is
that I still need to use data from other columns, its this information that I
dont want to load into the listbox. In other words I'm trying not to
cluttering the listbox with bazillion columns, but I still need all the
information to work with in the background.
Any ideas? This is what I'm working from.
With rs
.ActiveConnection = conn
.LockType = adLockBatchOptimistic
.CursorLocation = adUseClient
.CursorType = adOpenForwardOnly
.Open "select * from getcustomer"
.ActiveConnection = Nothing
End With
'Add recordset to Listbox
With List0
.RowSourceType = "Table/Query"
.ColumnCount = rs.Fields.Count
.ColumnHeads = True
End With
Set List0.Recordset = rs ' Presently this loads everything and I need to
restrict
I need a way to filter out some of the columns from a recordset and load
them into a listbox. The reason why I don’t SELECT exactly what I need is
that I still need to use data from other columns, its this information that I
dont want to load into the listbox. In other words I'm trying not to
cluttering the listbox with bazillion columns, but I still need all the
information to work with in the background.
Any ideas? This is what I'm working from.
With rs
.ActiveConnection = conn
.LockType = adLockBatchOptimistic
.CursorLocation = adUseClient
.CursorType = adOpenForwardOnly
.Open "select * from getcustomer"
.ActiveConnection = Nothing
End With
'Add recordset to Listbox
With List0
.RowSourceType = "Table/Query"
.ColumnCount = rs.Fields.Count
.ColumnHeads = True
End With
Set List0.Recordset = rs ' Presently this loads everything and I need to
restrict