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

Got it, thanks. It is done now.

"Douglas J. Steele" wrote:

"Angus" wrote in message
...
2. The PO number is 071378 but it becomes 71378 in Access even the
format
is
text, how to make it exactly the same as what it is (start with "0" if
there
is a "0")? my code is as followed:

rsHD!CUST_PO = Mid(TextLine, 172, 20)

Is CUST_PO a numeric field, as opposed to a text field? Numeric fields do
not keep leading zeroes: for a numeric field, 071378 and 71378 are
identical. I'm assuming CUST_PO is the customer purchase order number, so
it's doubtul you'll ever be doing arithmetic with the value!


the format is given as text format, and it comes with 071378, I hope to
keep it as text format so in future I have a chance to map it with
original
data.


You didn't answer the question. What is the data type of the field CUST_PO
in the table that's part of recordset rsHD? If you're losing leading zeroes,
it must be Number, not Text. Change it to Text, and your problem will go
away.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)






 
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 06:17 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"