A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Importing Tables



 
 
Thread Tools Display Modes
  #1  
Old February 24th, 2010, 11:47 AM posted to microsoft.public.access.forms
JB
external usenet poster
 
Posts: 290
Default Importing Tables

I have a database which needs to import a table from databases that are
created by another system.
My database checks the folder for any databases that have been created, and
lists them in a file. I then import the table, append the records to another
table and then delete the database individually.
Is there any way I could automate the process and import to the same table?

1. Check for databases (variable Db names)
2. Import table (always 'partsummary')
3. Delete database.

The code I currently use is below.

Dim strPath As String

strPath = Me.FileName

DoCmd.TransferDatabase acImport, "Microsoft Access", strPath, acTable,
"PartSummary", "t_PartSummary", False

Kill strPath




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.