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 to target search core results to an audience
How to add resource file in VB.NET like C#
Exchange Tabs missing in ADUC and Windows 7/ESM7
Query Field With Date/Time
Access Sales System Database
Create an OLAP data cube
Trying to open Access files from version 2.0 from Access 2007. Getting a series of error messages.
Recall messages stuck in Outbox
How do I change the currentproject.connection during run-time (or startup)?
How do I apply computer settings via a group policy applied to user objects?