Microsoft
Software
Hardware
Network
Question : Use VBA Code to check if a table exists.
How can I determine if a table exists in the current database,
1. using the least number of lines of VBA code
2. taking the least CPU time to execute
3. both.
Answer : Use VBA Code to check if a table exists.
Call this function:
Public Function mCheckTable() As Variant
On Error Resume Next
DoCmd.OpenTable "TableName"
If Error = 7874 Then 'table does not exist
Err.Clear
Exit Function
Else
err.clear
End If
End Function
Random Solutions
Using C# code with VB.Net
Change font color in access when two criteria are met
Shrink Massive Database? How to estimate how long it will take?
reading an xml file in c#
changing formview background color
SQL 2005 - An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'.
Microsoft tool to check for correct opened ports for AD
Fast Tape Less Backup Software
Outlook 2003 > managed mapi service catastrophic failure
Exchange 2010 - Connection to Exchange is unavailable