|
-
May 27th, 2008, 09:03 AM
#1
Thread Starter
Frenzied Member
export to dbf
I have listview with columnheader and listitem.. I want export content in the listview to dbf.. How I can start this?
-
May 27th, 2008, 09:08 AM
#2
Re: export to dbf
I know you know how to iterate through a ListView, so just put an INSERT INTO query in the loop that will write your items back to your database.
-
May 27th, 2008, 01:25 PM
#3
Thread Starter
Frenzied Member
Re: export to dbf
Hi Hack,
How to start with Insert into? I would like to start it with sample before I can go further?
-
May 27th, 2008, 01:31 PM
#4
Re: export to dbf
Example:
Code:
Dim i As Long
Dim sSQL As String
dim itmItem As ListItem
For i = 1 To ListView1.ListItems.Count
sSQL = "INSERT INTO tablename (field1, field2) "
sSQL = sSQL & "VALUES ('" & ListView1.ListItems.Text & "', "
sSQL = sSQL & "' " & itmItem.Subitems(1) & "')"
connobject.Execute sSQL
Next
Something like that.
-
May 27th, 2008, 01:45 PM
#5
Thread Starter
Frenzied Member
Re: export to dbf
What is this connobject ? How to get connection string?
Hmm I want to export to dbf files like this Soil.dbf which is standalone tables. Stored permenently in local computer as files.
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
|