在Access数据库中创建表 [英] Create Table in Access database

查看:117
本文介绍了在Access数据库中创建表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个包含所有在校学生的程序(VB.net 2008和访问数据库)
当用户选择学生时,将打开一个新表单,其中包含有关该学生的所有信息.

问题是在主数据库中创建一个新表.
我使用了Adox.dll,但是问题是我无法向旧数据库添加新表?
我找到了创建新数据库和创建表的代码,但是我需要向旧数据库中添加新表
错误消息显示(数据库确实存在")
任何人都可以通过代码解释如何将表添加到旧数据库中吗?
对于序言,我有C:\ Data.mdb
我需要将表(T1)添加到旧数据(C:\ Data.mdb)
谢谢

Hi,

I created a program containing all the students in school (VB.net 2008 and access data base)
When a user chooses a student a new form opens containing all the informations about the student.

The problem is creating a new table in the main database.
I used Adox.dll but the problem is I can''t add new tables to old Database ?
I find code to create new Database and create table but I need to add new tables to old database
error message show ("Database is really exist")
Can anyone put code explain how to add table into old database ?
for examble I have C:\Data.mdb
I need to add Table (T1) to old data (C:\Data.mdb)
Thank you

推荐答案

由于您没有给我们任何反馈,我将为您提供Microsoft客户支持的链接:

http://support.microsoft.com/kb/317881 [ http://www.mahipalreddy.com/vb/article86695.htm [
Since you dont give us any feedback Im going to give you a link to Microsoft customer support:

http://support.microsoft.com/kb/317881[^]

That should make the connection work. And here is a link were your question, hopefully is answerd:
http://www.mahipalreddy.com/vb/article86695.htm[^]

If this does not meed your requirements then please use the Improve question button to update or give us some example code. Good luck :)


这篇关于在Access数据库中创建表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆