Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Access Table Links to Multiple Txt Files

Status
Not open for further replies.

sibleytr

Technical User
Jan 27, 2005
21
US
In the past I've used the

Code:
DoCmd.TrasferDatabase acLink, "Microsoft Database" fieldName.Value &"\db.Mdb", acTable, "fieldName", "fieldName"

command to link to Mdbs in different project folders. This was accomplished with a table contanining the path of the different project folders, a form containing a combo box to select the desired project, and a button with VBA to delete the old link and recreate the new link (using the above code).

What I need to know now is can a link be created using VBA to a text file?

Can I link multiple text files given a list of path and text file names?
(\\server\share\file1...file5.txt)
(I need some type of looping to link all Txt files listed in the table.)

Any ideas would be helpfull.

 
TankHumper,

Please have a look at the TransferText action. This will allow you to link to a text file..

See the help text. Let me know if you need an example.

Good Luck...

 
I finally found the KB on it but it's turning in to be more trouble then time permits, so I attacking from the VB side.

Thanks for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top