Results 1 to 5 of 5
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Deleting ~TMPCLP

    I have ~TMPCLP files in my VBA App. I don't know where they came from or what they do and they seem like extra. I would like to delete these. How do I go about it?



    Click image for larger version. 

Name:	Tmp reports.PNG 
Views:	25 
Size:	5.4 KB 
ID:	24188

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Run a compact and repair. See if that helps. I think this flushes out that temp info.

    also
    http://www.access-programmers.co.uk/forums/showthread.php?t=237902

  3. #3
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    It doesn't work, I already tried that one.


    I'll work on this, dowsn't seem to work as yet.

    Public Sub DelTempTable()
    Dim t As Dao.Tabledef
    Dim db As Dao.Database
    Set db=CurrentDb

    For Each t In db.TableDefs
    If Instr(t.Name,"~") > 0 Then db.TableDefs.Delete t.Name
    Next
    set db=nothing
    End Sub
    Thanks

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    They are not tables according to your jpg. They appear to be reports??
    I am surprised they were not removed via Compact and Repair.
    Often any object beginning ~ is a "deleted" version of something and would be purged with C&R.

    Can you go to design view or report view?

  5. #5
    ohmydatabase's Avatar
    ohmydatabase is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2017
    Posts
    79
    In the Immediate Window, I executed:

    Code:
    DoCmd.DeleteObject acForm, "~TMPCLP385211"
    I did this manually for each instance of these TMPCLP Forms.

    Before discovering this, I backed up, repaired/compact, decompile, recompile. (The Works) To no avail...

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-14-2016, 09:54 AM
  2. Fields deleting by themselves
    By JKool in forum Forms
    Replies: 4
    Last Post: 05-30-2013, 11:14 AM
  3. Deleting a record
    By alexc333 in forum Access
    Replies: 7
    Last Post: 07-26-2011, 10:43 AM
  4. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  5. deleting records
    By radicalrik in forum Queries
    Replies: 2
    Last Post: 07-14-2010, 03:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums