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
Reading dBase files with attached MDX via ADO.NET
Simple (I think) but Urgent: Copy (XCopy?) files from multiple subdirectories into one directory
How do you setup the Edge Transport Role in Exchange 2010 if you only have 1 server in the organization?
Design a Query to subtract a record value from previous record value
How to start an application from a .Bat file and then upload files
Need to fix compatability issue with windows 7 64 bit for vfp version 7 (and 8 and 9)
scale based on date values
IME (Japanese) for Office 2007
aspx/c# looping through data from within body
WebService: Error adding reference or calling the service in browser