|
-
Mar 19th, 2000, 01:55 PM
#1
Thread Starter
Junior Member
Hi!
What is the syntax for loading data to comboboxes and listboxes from the databases.Whenever I use the "additem" it gives me errors.
thanx.
-
Mar 19th, 2000, 03:06 PM
#2
Lively Member
Additem in Listbox
Here is a small example with a select in an Access database then, I use the Additem for adding recordds in my list box
'
SQL = "select my_table from my_column where vadm_id = " & AdmId
Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset)
'
Do Until Rs.EOF
ListBox.AddItem Rs![my_description]
Rs.MoveNext
Loop
Good luck,
Thierry Demoy (France)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|