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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -