token_remedie
Registered User.
- Local time
- Tomorrow, 02:38
- Joined
- Jul 7, 2011
- Messages
- 78
Hey lovers,
I need a kick in the right direction here, trying to delete (or atm just print to msgbox) a variable table name to get rid of any import errors I might get - they wont be important anyway.
it cycles through everything sweet but it wants to delete everything....
Any ideas?
I need a kick in the right direction here, trying to delete (or atm just print to msgbox) a variable table name to get rid of any import errors I might get - they wont be important anyway.
it cycles through everything sweet but it wants to delete everything....
Any ideas?
Code:
Dim tblDef As TableDef
On Error Resume Next
For Each tblDef In CurrentDb.TableDefs
If InStr(1, tbleDef.Name = "*" & "$A:ZZImportErrors") > 0 Then
DoCmd.SelectObject acTable, tblDef.Name, True
DoCme.PrintOut
MsgBox tblDef.Name
'DoCmd.DeleteObject acTable, tblDef.Name
Beep
End If
Next tblDef