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
How do I disable javascript/Client side debugging in Visual Studio 2008
vb.net when close hide
MS ACCESS CODE PROBLEM - Can't assign a value to this object
Exchange 2010 Enterprise Public Folder
XmlDocument.Load(Stream) method is removing tabs between tags
Access to the registry key denied
Script for clearing out Outlook temp folder
time difference between two times in minutes in ms access query
Serial Port Communication C++
Access 2010 - installing without all of Office 2010