[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1618
  • Last Modified:

dbLangGeneral error in CreateDatabase

I am trying to create an access database using vb.net and I am getting an error on dbLangGeneral (it says it is not declared):

db = DBEngine.CreateDatabase(DBFullPath, dbLangGeneral)

Anyone know why this is?
0
SysCapstone
Asked:
SysCapstone
1 Solution
 
bchoorCommented:
since ur using DBEngine - I'm assuming you have a reference to DAO

so try this, DAO.LanguageConstants.dbLangGeneral

HTH
~BC
0
 
SysCapstoneAuthor Commented:
thanks, after doing that i get a new error on the line:
"Reference to a non-shared member requires an object reference"
0
 
clockwatcherCommented:

db = (new DBEngine).CreateDatabase(DBFullPath, LanguageConstants.dbLangGeneral)

or

dim engine as new DBEngine
db = engine.CreateDatabase(DBFullPath, LanguageConstants.dbLangGeneral)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now