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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing text files into a Backend database using the Frontend

Status
Not open for further replies.

ddelk

Programmer
May 28, 2003
47
0
0
US
I am getting text files dumped to a folder and I need to bring those into a backend database. I am trying to figure out how to do a call to docmd.transfertext from the frontend that brings the files into the backend.
 
Try something like this

Code:
Public Sub runOther(strDBPath As String)
Dim acApp As Access.Application

Set acApp = New Access.Application
acApp.OpenCurrentDatabase (conDBPath)
acApp.DoCmd.OpenQuery "Query1", acViewNormal

[COLOR=green]'Cleanup[/color]
acApp.Quit
Set acApp = Nothing
End Sub
 
If the table in the backend exists and is linked to the frontend, then you should be able to run TransferText from the frontend without any problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top