adodc连接字符串的代码是什么? [英] What is the code of adodc connection strings..?

查看:92
本文介绍了adodc连接字符串的代码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GOOD DAY:

我的程序遇到了adodc问题..
我想要一个示例vb6程序,安装后adodc不仅可以连接到我的计算机,而且还可以连接到其他计算机..

我的意思是不将其连接到本地区域,我只想创建一个安装程序,它的数据库adodc不仅可以连接到我的计算机,而且可以在其他计算机上安装它之后进行连接.
冲突是

"info.mdb不是有效路径,请确保路径名拼写正确,并且已连接到文件所在的服务器." :(


这是我的代码:

GOOD DAY:

I''m having a adodc problem with my program..
i want a sample vb6 program that adodc connects not only in my computer but also in other computer after I install it..

what i mean is not connecting it to local area i only want to create an installer which my database adodc connects not only in my computer but after i installed it in other computer..

the conflict is

"info.mdb is not a valid path make sure that the path name is spelled correctly and that you are connected to the server on which the file resides." :(


here''s my code:

Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\" & "info.mdb"
Adodc1.RecordSource = "Table1"
Set DataGrid1.DataSource = Adodc1





>那里有人可以帮助我进行编码吗?
>转移或安装后,有人可以在我的框中评论连接到其他PC的app.path的编码吗?
>那里有人可以尽快帮助我吗?



非常感谢...





>can someone there who can help me with my coding?
>can someone comment on my box for coding of app.path that connects in other PC after I transfer or install it??
>can someone there could help me as soon as possible?



BIG THANKS...

推荐答案

"info.mdb is not a valid path"


这似乎很容易解决,找出文件的存储位置并使用完整路径引用它.您可能还需要检查您是否使用了连接字符串 [


That seems fairly easy to resolve, find out where the file is stored and use the full path to refer to it. You may also need to check you are using the full information required in the connection string[^].


这篇关于adodc连接字符串的代码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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