Solved

how to create a database using vb

Posted on 1998-11-06
4
131 Views
Last Modified: 2010-04-30
teach me how to create an application databse using vb
thankd
0
Comment
Question by:JOHNHO
4 Comments
 
LVL 1

Expert Comment

by:csalves
ID: 1443480
Hello,

Your Question is simple you can execute DDL comands from VB.

For exemple:

IF you have a connection to an INFORMIX USER you can create a VB program to create a database with the SQL ANSI instruction
"CREATE DATABASE <database_name>;"

after that you can create so many tables you wish:
With CREATE TABLE instruction.

Bye,

0
 

Author Comment

by:JOHNHO
ID: 1443481
CAN YOU EXPLAIN MORE TO ME PLEASE
BECAUSE IM SO STUPID
THANKS IN ADVANCE

0
 
LVL 1

Expert Comment

by:tommy_boy
ID: 1443482
Johnho..

Get yourself a copy of DBMapper.  It maps an existing Access Database into Visual Basic code (BAS Module). There you can go through it at your own pace and se exactly how it is done.  DBMapper also creates the queries stored in Acess Databases.

I think it is shareware and you should be able to find it by searching the web. If you can't email me back at tommy_boy@rocketmail.com and I'll send you a copy.

0
 
LVL 3

Accepted Solution

by:
myqlG earned 20 total points
ID: 1443483
using vb5 and DAO:
dim dbsnew as database
dim wrkdefault as workspace

 Set dbsNew = wrkDefault.CreateDatabase("c:\order entry\NewDB.mdb", _
        dbLangGeneral)
       dbsNew.Execute "CREATE TABLE Daily " _
        & "(Operator TEXT, regular INTEGER,gift INTEGER,shipping CURRENCY);"
dbsNew.Close
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

810 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