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
OWA 2007 Password Change Working with ISA 2006 When it Should Not.
Send/receive fax via ms access
Load analysis services data into an Access table
Access control inside nested gridview
Server Monitoring via Email
SBS 2008 - Combine two gigabit nics for faster network speed.
Can not unhide switchboard to access tables.
Turn on Insert function on Apple Keyboard A1243 (2007 MacBook Pro running WinXP Pro)
Annotate pdf file online using silverlight
T-SQL Count Issue