create an DAO Access file in Excel VBA -


i unable create file using following commands, me in regard. error says invalid argument. got office 2010.

my ref :ms office 14.0 access database object library

sub dbcreate()  dim db dao.database dim rs dao.recordset   set db = dao.workspaces(0).createdatabase("d:\tblimport11.accdb",    db_lang_general)       db.close      'set rs = nothing     set db = nothing end sub 

i tried:

set db = dbengine.createdatabase("d:\tblimport11.accdb", db_lang_general) 

this gives same error

the db_lang_general wrong parameter. use:

set db = dbengine.createdatabase("d:\tblimport11.accdb", dblanggeneral) 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -