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
Color Translator
The remote server returned an error: NotFound.
pkzipc path woes
creating an install routine for custom printers and SQL Database
Can not create outlook data file
Grouping and SubTotal in Excel 2003
Load picture into image using a recordset
Word/Excel Mail Merge with variable worksheet name
Sorting Column names while viewing data in TOAD
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI<wbr />_AS" and "Latin1_General_CI_AS" in the equal to operation