在代码中加载Access数据库 [英] Loading an Access database in code
本文介绍了在代码中加载Access数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试创建一个vb程序,除其他外,将打开
a MS Access的新副本(带有system.mdw的自定义副本)并加载
a数据库。我一直在尝试使用
System.Diagnostics.Process.Start函数,但这无法正确地加载所需的system.mdw
。有没有人有任何想法?
提前致谢,
Ian
Hi everyone,
I am trying to create a vb program which, among other things, will open
a new copy of MS Access (with a custom copy of the system.mdw) and load
a database. I have been trying to utilise the
System.Diagnostics.Process.Start function, but this fails to correctly
load the required system.mdw. Does anyone have any ideas?
Thanks in advance,
Ian
推荐答案
Ian,
这是你的意思吗?
http://www.windowsformsdatagridhelp....1-d6dda3c888c8
我希望这会有所帮助,
Cor
Ian,
Is this what you mean?
http://www.windowsformsdatagridhelp....1-d6dda3c888c8
I hope this helps,
Cor
感谢您的回复Cor。
这不是我的意思 - 我不想在我的VB程序中从
控制数据库,我只想加载访问然后停止运行
VB程序。该程序的部分功能是提供一个
智能数据库加载器,实际上,替换当前的
快捷方式(调用:C:\Program Files \ microsoft
Office \OFFICE11 \ MSACCESS.EXE"" S:\Database.mdb" / wrkgrp
" S:\ system。 mdw。
再次感谢,
Ian
Thanks for the response Cor.
It isn''t quite what I mean - I don''t want to control the database from
within my VB program, I just wish to load access and then stop running
the VB program. Part of the function of this program is to provide an
intelligent database loader, and in effect, replacing the current
shortcut (which calls: "C:\Program Files\Microsoft
Office\OFFICE11\MSACCESS.EXE" "S:\Database.mdb" /wrkgrp
"S:\system.mdw").
Thanks again,
Ian
Ian,
你能否展示该application.start的代码,因为那个
应用程序以dbs应该(通常)开始访问的路径开头。
Cor
Ian,
Can you than show the code of that application.start, because that
applications start with as path the dbs should (normally) start access.
Cor
这篇关于在代码中加载Access数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文