[dba-VB] Text File Into Access Using Visual Basic 6

Joe Rojas JRojas at tnco-inc.com
Wed Jan 28 12:21:03 CST 2004

Do you HAVE to use VB to do this? Can you just use Access and do a File ->
Get External Data -> Import?
This would be much easier, IMO.


-----Original Message-----
From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net]
Sent: Wednesday, January 28, 2004 4:28 AM
To: dba-vb
Cc: accessd
Subject: [dba-VB] Text File Into Access Using Visual Basic 6

To all,

Can anyone tell me (preferably with sample code, if possible), what is the
fastest way to import a .txt file into a predefined table in access via
Visual Basic 6.

My .txt file contains roughly 365,876 records with two fields - Barcode,
Price.  This has to be imported into an Access table also containing two
fields Barcode (text), Price (Number, Double, Fixed, 2 decimal places). 

The .txt file is comma delimited.  I'm using Access XP and Visual Basic 6.0
as the front-end.

Thanks in advance for any help as, this project needs to be ready for Monday

Paul Hartland
Freeserve AnyTime - HALF PRICE for the first 3 months - Save £7.50 a month
dba-VB mailing list
dba-VB at databaseadvisors.com

This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.

More information about the dba-VB mailing list