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
Post a Comment