PC Review


Reply
Thread Tools Rate Thread

docmd.transfertext problem

 
 
00 Hillary
Guest
Posts: n/a
 
      31st Oct 2007
Hi,

I am using access 97 and tried to import a csv file to the mdb table. I run
a code as following:


DoCmd.TransferText acImportDelim, "Specification4", "input",
DEFAULT_PATH & "online.txt", 1


In online.txt, there is a field which is 10 digit number and I specified it
as a double datatype in the specification4. After the import, I found out
that the 10 digit number data in the field get empty in the destined table
while other fields are all right. Therefore I import manually using
specification4 instead of running code. This time the 10 digit number data
get imported to the destined table. Can anyone please help me on how to fix
the problem so that I run the code? Thanks.


 
Reply With Quote
 
 
 
 
00 Hillary
Guest
Posts: n/a
 
      1st Nov 2007
Can anyone please help? Thanks.

" 00 Hillary" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am using access 97 and tried to import a csv file to the mdb table. I
> run a code as following:
>
>
> DoCmd.TransferText acImportDelim, "Specification4", "input",
> DEFAULT_PATH & "online.txt", 1
>
>
> In online.txt, there is a field which is 10 digit number and I specified
> it as a double datatype in the specification4. After the import, I found
> out that the 10 digit number data in the field get empty in the destined
> table while other fields are all right. Therefore I import manually using
> specification4 instead of running code. This time the 10 digit number data
> get imported to the destined table. Can anyone please help me on how to
> fix the problem so that I run the code? Thanks.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
docmd.transfertext problem hakeem777 Microsoft Access External Data 0 1st Nov 2007 12:20 AM
Re: docmd.transfertext problem 00 Hillary Microsoft Access Forms 0 1st Nov 2007 12:13 AM
Re: docmd.transfertext problem 00 Hillary Microsoft Access Form Coding 0 1st Nov 2007 12:13 AM
doCmd.transferText problem Randy K. Microsoft Access VBA Modules 1 26th Aug 2003 07:46 AM
doCmd.transferText problem Randy K. Microsoft Access Queries 1 26th Aug 2003 07:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 PM.