A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2008, 07:58 AM posted to microsoft.public.access.queries
Aussie Rules
external usenet poster
 
Posts: 2
Default create a table within an access2007 database using code in a vb.net app ?

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 ?

  #2  
Old February 14th, 2008, 08:51 AM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default create a table within an access2007 database using code in a vb.net app ?

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.


--
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.

"Aussie Rules" wrote in message
...

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 ?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.