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
Runtime error 48. Error Loading .dll
Userform - button for close and save
I want to use the sum by IFF Function by using a criteria
Automation error when using MSGraph in Access 2000
Processing multiple textr files usiing dataadapter
MSSQL Service will not start up (Logs Posted)
convert web app to executable
How do I insert a word document or pdf into the body of an email?
how to store emails from exchange server into a tale in access?
Certificate Blues