|
-
Apr 2nd, 2010, 01:37 PM
#1
Thread Starter
Lively Member
listbox issue
Hi...
i have ms access table with fields like s1,s2,s3.And i have 3 values in the listbox (form 1)like 45 56 23.I want these three value should be stored in s1,s2,s3 fields respectively.
the code which i used for this is
vb code Code:
rs(0) = List1.list(0)
rs(1) = List1.list(1)
rs(2) = List1.list(2)
but its not working.It didnt throws any error.simply this code is storing zero as a value in all fields(s1,s2,s3) of the access table.Can anyone pls help me on this..
-
Apr 2nd, 2010, 01:42 PM
#2
Re: listbox issue
I would call this a "database issue" rather than a listbox issue, since the problem is storing data in the DB. The solution depends on what you use to connect/communicate with the DB.
-
Apr 2nd, 2010, 01:49 PM
#3
Thread Starter
Lively Member
Re: listbox issue
k fine..is it possible to store all values in the listbox into the fields of table?
-
Apr 2nd, 2010, 01:51 PM
#4
Re: listbox issue
Yes it is but like I said the solution depends on the method you use to connect with the DB.
-
Apr 2nd, 2010, 01:56 PM
#5
Thread Starter
Lively Member
Re: listbox issue
I used the ADOdb connection.
-
Apr 2nd, 2010, 01:59 PM
#6
Thread Starter
Lively Member
Re: listbox issue
Can you pls give me the code for that to do? using Adodb connection
-
Apr 2nd, 2010, 02:00 PM
#7
Re: listbox issue
Searching the forums for "ADO insert record" will get you a lot of examples on how to do it. This is just one of them http://www.vbforums.com/showthread.p...ght=ado+insert
-
Apr 2nd, 2010, 02:05 PM
#8
Thread Starter
Lively Member
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
|