Davidmc555
Programmer
I feel so stupid for asking this, but I've looked all over Tek-tips and google and not found what I'm looking for.
In short, I want to populate a listbox with multiple columns based on an SQL Query. The query returns 3 different elements of information, an Item ID (Not the unique ID however), it's description and it's quantity. The number of row is undetermined as the number of items could be anything, so therefore the listbox is designed to vertically scroll.
I've devised the SQL query but I'm not sure how to populate the listbox. (I know how to do it in VB.NET and now I'm working with VBA) I looked on the VB Help and MSDN but with no success. So far I got it to populate the listbox with the Item Id only.
Could anyone drop some hints as to how to show all columns and all rows?
Many thanks in advance.
In short, I want to populate a listbox with multiple columns based on an SQL Query. The query returns 3 different elements of information, an Item ID (Not the unique ID however), it's description and it's quantity. The number of row is undetermined as the number of items could be anything, so therefore the listbox is designed to vertically scroll.
I've devised the SQL query but I'm not sure how to populate the listbox. (I know how to do it in VB.NET and now I'm working with VBA) I looked on the VB Help and MSDN but with no success. So far I got it to populate the listbox with the Item Id only.
Could anyone drop some hints as to how to show all columns and all rows?
Many thanks in advance.