can anybody help me with a sample code on how to add items in listbox connected in database.
my item list are amount, description, and OR #.
vonnoy
0
Newbie Poster
Recommended Answers
Jump to PostSame as per your previous post, have a look at this discussion.
Jump to Postuse following code to add items to listbox
list1.AddItem "item1"
if you mean retrieve data from database to listbox , then use the following code
con.Provider = "Microsoft.Jet.OLEDB.4.0" con.Open App.Path & "\db.mdb" rec.Open "select field_name1,field_name2 from tbl", con, 2, 3 While (rec.EOF = False) List1.AddItem rec.Fields(0) List2.AddItem …
All 6 Replies
AndreRet
526
Senior Poster
vonnoy
0
Newbie Poster
rishif2
57
Posting Whiz in Training
AndreRet
526
Senior Poster
vonnoy
0
Newbie Poster
AndreRet
526
Senior 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.