dbLangGeneral error in CreateDatabase

Posted on 2006-04-02
Last Modified: 2008-01-09
I am trying to create an access database using and I am getting an error on dbLangGeneral (it says it is not declared):

db = DBEngine.CreateDatabase(DBFullPath, dbLangGeneral)

Anyone know why this is?
Question by:SysCapstone
    LVL 10

    Expert Comment

    since ur using DBEngine - I'm assuming you have a reference to DAO

    so try this, DAO.LanguageConstants.dbLangGeneral


    Author Comment

    thanks, after doing that i get a new error on the line:
    "Reference to a non-shared member requires an object reference"
    LVL 25

    Accepted Solution


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


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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now