CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Visual Basic

  1. #1
    Join Date
    Aug 2001
    Posts
    1

    Visual Basic

    1) How to create a new database on a remote server (eg. To create a new Access
    database VB calls CreateDatabase()). Likewise we require a code to create a
    new ODBC like SQL or Oracle Database using ADOs or RDOs ?
    2) How to initialize this database through Package and Deployment wizard ?




  2. #2
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    78

    Re: Visual Basic

    I don't know if this is can help you but you could create an Access database as follows:


    Dim appAccess as Access.Application

    private Sub Command1_Click()
    set appAccess = new Access.Application

    appAccess.NewCurrentDatabase "C:\WINDOWS\Desktop\MyDB.mdb"

    set appAccess = nothing
    End Sub




    You will need to add Reference to "Microsoft Access 9.0 Object Library" (ACCESS 2000)

    RF


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured