VB6 Adodc无法在其他PC上运行 [英] VB6 Adodc not working on other PC

查看:135
本文介绍了VB6 Adodc无法在其他PC上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,有一个让我疯狂的问题,尝试了一切并想知道我错过了什么。与mdb建立adodc连接。在开发PC上,数据库完全读取文本框。当我编译项目并在另一台机器上运行时,它不会填充文本框,而前一个/下一个命令按钮也不能正常工作。然而,如果我打开设计电脑的exe。整个网络它读得很完美??????在设计模式下或在其他PC上的编译模式下没有错误消息。文本框已在其属性中设置。请问任何人都可以建议他们认为问题可能是什么?


此处我的代码在打开的表格上调用mdb:

Hi all, got a problem that is driving me insane, have tried everything and wondering what I am missing. Have a adodc connection to a mdb. On the development PC the database reads perfectly to the text boxes. Soon as I compile the project and run on another machine it does not populate the text boxes and previous / next command buttons don''t work either. Yet if I open the exe from the "design pc" across the network it reads perfectly?????? No error message while in design mode or in compiled mode on other pc. The text boxes have been set in their properties. Please could anyone advise as to what they think the problem might be?

Herewith my code to call the mdb on form open:

展开 | 选择 | Wrap | 行号

推荐答案

没有人知道问题可能是什么?
Does no one know what the problem might be?





只想一想,连接字符串''App.Path''是否适用于两台PC?


MTB
Hi

Just one thought, does the connection string ''App.Path'' apply to both PCs??


MTB


app.path指向主机pc(但也适用于网络)。当安装在PC上的软件都安装了mdb等时。所以实际上是一个克隆。我在其他表单和函数的同一个项目中有其他mdb链接,这些链接对于托管和跨网络都没有麻烦。只有这一个,当我整个程序到其他电脑时,将无法正常工作。在开发pc上它工作正常?????让我感到困惑不已。任何想法都会得到适用。
Hi, the app.path is directed at the host pc (but also works across network). When software installed on a pc all mdb etc installed with it. So in effect a clone. I have other mdb links within same project on other forms and functions that work no hassle to host and across network. Just this one that will not work when I entire program to other pc. On development pc it works fine????? got me baffled beyond belief. Any Ideas would be apprciated.


这篇关于VB6 Adodc无法在其他PC上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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