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
Convert to Primary Zone to Secondary zone
What are ROLLUP and CUBE commands in SQL Server 2000 ?
DSUM - to calculate a running total???
My App can't find Crystal Decisions DLL after it is moved to another computer.
Hide root node in Menu using xmldatasource
Using a geometry type check constrint in sql sever 2008
Outlook voting button no response summary
Combo Box Events
How do I add a .5 value to a CountIf statement?
Why is the WSUS database growing to almost 4 GB?