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
Macro to export outlook contacts to Excel hangs
SSRS: Can I make a rectangle that truly hides
Where to buy Office 2003 OEM Basic CHEAP (but leagal)?
Exchange 2010 Spam Handling Hub Transport Server
SQL query question
Silverlight convert XAML to xaml.cs code at runtime
windows server 2008 disable service sac prompt
lock cloumn width for only selected cells
Excel 2003 is looking for pro11.msi, where can i find it and why is it needed all of a sudden?
return an email object's guid