LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.access.modulesdaovba.ado,microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Import csv to different tables

I have a csv file that need to import to Access database.

The csv carries two types of data: PO header and PO lines. They are in
different format and length, which should be imported into two different
tables: tbl_header and tbl_line.

The PO header is customer name, address, etc.

The PO lines are what products are ordered.

The length of header is order type (3), order ID (4), customer name (20)€¦
The length of lines are order type (3), order ID (4), line number (2), item
description (20), qty (2), price (##.##).

In following case John Stewood purchases one wireless mouse worth $15.00 and
one keyboard worth $3.5, order ID are 1000-01 and 1000-02.

Following is the example of csv
HDR1000JOHN STEWOOD

LIN100001WIRELESS MOUSE 1 1500
LIN100002KEYBOARD 1 0350

How to write the codes?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How import multiple tables from same web page (Web Query)? [email protected] Excel Discussion (Misc queries) 2 March 8th 06 11:41 PM
Import data from multiple tables Pontificateur Excel Programming 0 January 19th 06 06:38 PM
I can import Access Tables. But, I can't import Access queries nickg420[_8_] Excel Programming 0 August 5th 04 07:46 PM
Import Queries instead of Tables (ADO) George Excel Programming 4 April 12th 04 09:30 PM
Import Queries instead of Tables (ADO) George Excel Programming 1 April 12th 04 08:21 PM


All times are GMT +1. The time now is 07:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"