G
Guest
*Sigh* I've searched everywhere for what I figured was an easy one that I'm
having a mental block on.
How do I test to see if an object in my database exists, say a table or query.
If I try to test to see if the table exists, I get an error 3265 Object Not
Found in this Collection
If (db.TableDefs("tblMyTable")) Then
' Do Something
Else
'Do Something else
End If
I could easily trap the error, and call a separate function to handle the
else part but that seems like a stupid workaround.
-David
having a mental block on.
How do I test to see if an object in my database exists, say a table or query.
If I try to test to see if the table exists, I get an error 3265 Object Not
Found in this Collection
If (db.TableDefs("tblMyTable")) Then
' Do Something
Else
'Do Something else
End If
I could easily trap the error, and call a separate function to handle the
else part but that seems like a stupid workaround.
-David