does any1 have any idea how to link listboxes with adodc to a database?
shabina
0
Newbie Poster
Recommended Answers
Jump to PostWith a listbox, I'm pretty sure you have to do it all manually, for example:
1) Connect To Database
2) Query Database
3) Add Relevant info to listbox using the .additem method.As far as making the listbox directly receive the recordsets.... I don't think you can.
Jump to PostWhich, is basically what I said, without posting the code. If you are trying to bind the listbox to the database, though, that method will not work.
Jump to PostOne Problem that stands out, is that the lstAttach is a listbox, and NOT a textbox. A listbox has a .text property, but it's basically there just to trick you. I wrote a test program, that has only 2 lines of code on form load. Which is:
list1.text = …
All 10 Replies
Comatose
290
Taboo Programmer
Team Colleague
extofer
-2
Posting Whiz in Training
Comatose
290
Taboo Programmer
Team Colleague
shabina
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
shabina
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
shabina
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
shabina
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.