Results 1 to 5 of 5

Thread: Importing CSV File

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    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

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    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.


    Quote Originally Posted by westconn1
    import to do what?

    it is only string manipulation

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    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..



    Quote 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
  •  



Click Here to Expand Forum to Full Width