transfer .txt to my existing table in Ms Access 
Author Message
 transfer .txt to my existing table in Ms Access

I used the command below to transfer the .txt to my existing file called
"gbilsts", it do not work,
and prompt msg "field f1 doesn't exist in the destination table "gbilsts"" ,
but when i used the the import wizard in the Ms access
it work fine, the problem is how can i used command code to transfer the
things to my existing table.
DoCmd.TransferText _
transfertype:=acImportDelim, _
tablename:="gbilsts", _
filename:="E:\JTI\gbilsts.txt"

i'm appreciated if you can help me on this.



Sat, 31 Jan 2004 10:52:54 GMT  
 transfer .txt to my existing table in Ms Access
If you are working in the Visual Basic product, not in VBA in Access, there
is no DoCmd. DoCmd is Access-object-model specific and exists to allow
execution in VBA of functions that would otherwise have been done as Macro
Actions.

I've personally not been impressed by the import features for text, and, to
get exactly what I want, often write VBA code to read the text and save the
information in the file. If you're working in the Visual Basic product, that
will be your only choice.


Quote:
> I used the command below to transfer the .txt to my existing file called
> "gbilsts", it do not work,
> and prompt msg "field f1 doesn't exist in the destination table "gbilsts""
,
> but when i used the the import wizard in the Ms access
> it work fine, the problem is how can i used command code to transfer the
> things to my existing table.
> DoCmd.TransferText _
> transfertype:=acImportDelim, _
> tablename:="gbilsts", _
> filename:="E:\JTI\gbilsts.txt"

> i'm appreciated if you can help me on this.



Sat, 31 Jan 2004 11:04:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to modified existing field and add new field in existing table for Access database

2. Problem with creating a table in Access from existing table

3. transfer data access - txt

4. Lookup MS Access table from MS Word

5. How can I attach External MS-Access Tables to MS-AccessDatabases

6. MS Access DB - Copy Table A from Database A to Table A Database B

7. Save an access table to .txt and .rtf

8. export access table to txt file

9. Export Pocket Access table to TXT file?

10. Accessing .DBF-files (or MS-Access tables) from VB

11. Access97: Latest MS dev tools break existing Access installations

12. data transfer from word form to ms access db

 

 
Powered by phpBB® Forum Software