vba - How to check if a table exists in MS Access for vb macros -


possible duplicate:
check if access table exists

i'm new vba macros. idea how check if table exists or not? have searched previous posts did not clear solution this.

setting reference microsoft access 12.0 object library allows test if table exists using dcount.

public function iftableexists(tblname string) boolean      if dcount("[name]", "msysobjects", "[name] = '" & tblname & "'") = 1          iftableexists = true      end if  end function 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -