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 / Queries / February 2008

Tip: Looking for answers? Try searching our database.

create a table within an access2007 database using code in a vb.net app ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aussie Rules - 14 Feb 2008 07:58 GMT
Hi,

Is it possible to create a table via code (create table ........) in an
access 2007 database from a Vb.net 2008 application?

Any tips/samples/links on how to do this ?
Allen Browne - 14 Feb 2008 08:51 GMT
Assuming you have some kind of driver that connects to the Access database,
you can execute a DDL query to CREATE TABLE.

Here's an example of executing a DDL statement to create a table:
   http://allenbrowne.com/func-DDL.html#CreateTableDDL
The example is VBA code, but the SQL statement would be similar in whatever
language and connection you use from VB.NET.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Is it possible to create a table via code (create table ........) in an
> access 2007 database from a Vb.net 2008 application?
>
> Any tips/samples/links on how to do this ?
 
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.