|
-
Nov 6th, 2006, 05:22 AM
#1
Thread Starter
Addicted Member
Importing CSV File
Hello friends,
In Access or Excel, microsoft provided Importing CSV File Facility. I would like to use same component. May i know how can i get that componet. so that i can use it in my application
Thank you
-
Nov 6th, 2006, 05:31 AM
#2
Re: Importing CSV File
import to do what?
it is only string manipulation
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 6th, 2006, 06:29 AM
#3
Thread Starter
Addicted Member
Re: Importing CSV File
I want to update the backend tables...with the CSV Data..
I will select table from backend and selelct columns, to be updated with the CSV data..
I want it to work same as Excell or Access..
Just try to open Text file [CSV in ] access...you will get the dialog for delimeter selection. so i want that component.
 Originally Posted by westconn1
import to do what?
it is only string manipulation
-
Nov 6th, 2006, 06:38 AM
#4
Re: Importing CSV File
i used radio buttons to select the more common delimiters, with the option of typing in any other characters, and also set up abox to select the length of fixed width strings, then i could split the strings by the delimiter or by the fields length, then just copy the array values to whatever
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Nov 6th, 2006, 06:42 AM
#5
Thread Starter
Addicted Member
Re: Importing CSV File
what i feel as, while Microsoft already developed it. so if it has given out freely as component we would have used.. reading manually and inserting i have completed. But it still risk some times CSV may have wrong values..
 Originally Posted by westconn1
i used radio buttons to select the more common delimiters, with the option of typing in any other characters, and also set up abox to select the length of fixed width strings, then i could split the strings by the delimiter or by the fields length, then just copy the array values to whatever
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
|