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
foward one email to multiple people exchange 2007
how to get rid of the bcmwltry.exe-application error
Loop Problems
Printing "newspaper columns" in Excel
PowerPoint 2003 the Organization Chart server can't be found
moving Office 2007 from old computer to new one
no change-event checkbox in datagridview
Need help troubleshooting VMware ESXi 4.0 PSoD
Position cursor to specified line in multiline textbox
Virtual Server 2005 R2 'fatal error' when attempting to resume from saved state