Creating table in Access using C#

J

Johnny E Jensen

Hello Group

I have made an application that can create Mail Merges with Word. The
application creates a WordTemplate and set the
Document.MailMerge.OpenDatasource's filename to a text (tab spe.) file.
Containing all fields and data to merge with.

I would like to change the MailMerge.OpenDatasource's datasource to an
Access database instead.

In another table i have a list of fields that can be used in the mailmerge.
These fields can change from time to time, and therefore i will have to
change the table that i used as the MailMerge datasource table.

So: I'll need to first Delete the table - easy - just Execute the SQL "DROP
TABLE [tablename];"
Then create the table with the columns matching my merge fields..

How can i create a new table in Access 2003 using C# and Visual Studio 2005

Kind Regards
Johnny E. Jensen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top