Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

VB "Make Table"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James C. - 15 Jul 2005 22:46 GMT
Does anyone know how to do a make table using vb? I am running SQL in one of
my functions and need to create a table.
Joerg Ackermann - 16 Jul 2005 00:17 GMT
> Does anyone know how to do a make table using vb? I am running SQL in
> one of my functions and need to create a table.

use (DDL) SQL -> currentdb.execute "CREATE TABLE...  
or
use VBA -> CreateTabledef-Method

There are several examples in access-help

Acki
Carol Grismore - 16 Sep 2005 17:13 GMT
dim mySQL as string
mySQL = "create table Fred (txtText char(50), datDate datetime, intInt int)"
docmd.runsql mySQL

If you want to make a table from existing data, replace the mySQL text with
text stolen from a make table query.

Signature

Carol

> Does anyone know how to do a make table using vb? I am running SQL in one of
> my functions and need to create a table.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.