PC Review


Reply
Thread Tools Rate Thread

Deleting Import Error Tables

 
 
Cathy
Guest
Posts: n/a
 
      22nd Mar 2010
Is there a way to delete a series of import error tables programatically? I
am pulling in unformatted data from Excel, which causes many import error
tables... The data is good, just not formatted to directly load into a table.
I would like to regularly programatically delete these import error tables,
otherwise they just continue to accumulate.

Thank you,
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      22nd Mar 2010
I can't remember the naming convention for the import error tables. What do
they look like?

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Cathy" <(E-Mail Removed)> wrote in message
news:7E9BF839-A934-420F-BCB9-(E-Mail Removed)...
> Is there a way to delete a series of import error tables programatically?
> I
> am pulling in unformatted data from Excel, which causes many import error
> tables... The data is good, just not formatted to directly load into a
> table.
> I would like to regularly programatically delete these import error
> tables,
> otherwise they just continue to accumulate.
>
> Thank you,



 
Reply With Quote
 
Jack Leach
Guest
Posts: n/a
 
      22nd Mar 2010
I'm not sure how (or if it's possible) to capture the strange names that MS
gives these, but if you use a decent naming convention, you may be able to
'reverse program' the procedure...

Assuming "tbl" prefix for reg tables, "jtbl" for junctions, "ttmp" for temp
tables, and "ltbl" for Local tables, something like this piece of complete
aircode may get you started...

Dim td As TableDef, strTable As String
For Each td In TableDefs
strTable = td.Name
If (Left(strTable, 3) <> "tbl") AND _
(Left(strTable, 4) <> "jtbl") AND _
(Left(strTable, 4) <> "MSys") AND _
(Left(strTable, 4) <> "USys") AND _
(Left(strTable, 4) <> "ttmp") AND _
(Left(strTable, 4) <> "ltbl") Then
td.Delete (?)
End If
Next



CAREFULLY!!!! :-)


hth


--
Jack Leach
www.tristatemachine.com

"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)



"Cathy" wrote:

> Is there a way to delete a series of import error tables programatically? I
> am pulling in unformatted data from Excel, which causes many import error
> tables... The data is good, just not formatted to directly load into a table.
> I would like to regularly programatically delete these import error tables,
> otherwise they just continue to accumulate.
>
> Thank you,

 
Reply With Quote
 
Jack Leach
Guest
Posts: n/a
 
      22nd Mar 2010
Come to think of it, isn't the prefix for these tables "rad"? Pure guess
here, but it would be much easier (and safer, IMO), to take this approach.

Although, my previous post serves as a prime example for the many many good
things to come about from a complete implementation of a naming scheme!

--
Jack Leach
www.tristatemachine.com

"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)



"Cathy" wrote:

> Is there a way to delete a series of import error tables programatically? I
> am pulling in unformatted data from Excel, which causes many import error
> tables... The data is good, just not formatted to directly load into a table.
> I would like to regularly programatically delete these import error tables,
> otherwise they just continue to accumulate.
>
> Thank you,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting line item in import function causes REF# error =?Utf-8?B?SmVu?= Microsoft Excel Worksheet Functions 1 13th Apr 2006 02:24 AM
Deleting tables when Import files creates _ImportErrort ReidarT Microsoft Access Form Coding 2 21st Apr 2005 03:45 PM
Better Way to Delete Import Error Tables? =?Utf-8?B?QmlsbCBTdHVyZGV2YW50?= Microsoft Access Form Coding 2 1st Feb 2005 07:45 PM
Import Error Tables =?Utf-8?B?UGF0cmljayBMeW5jaA==?= Microsoft Access 1 16th Dec 2004 11:43 AM
Deleting error tables automatically Martyn Microsoft Access Queries 1 3rd Oct 2003 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.