【问题标题】:Connect to an access database in a remote directory using dao (VB6)使用 dao (VB6) 连接到远程目录中的访问数据库
【发布时间】:2009-08-04 03:57:27
【问题描述】:

我需要替换这个结构:

dim base as dao.database
set base = opendatabase ("c:\path\name.mdb")

与另一个.mdb 位于服务器目录中。我试过了:

dim base as dao.database
set base = opendatabase ("\\server\folder\name.mdb")

但它不起作用。我正在使用VB6。有什么想法吗?

【问题讨论】:

  • 不工作怎么办?例如你看到错误信息了吗?

标签: ms-access vb6 jet


【解决方案1】:

试试

set base = opendatabase ("\\server\folder\name.mdb")

【讨论】:

  • 嗨,对不起,我确实使用了 \\,但忘记把它放在帖子上
猜你喜欢
  • 1970-01-01
  • 2017-12-18
  • 2012-04-25
  • 2011-09-20
  • 2019-01-26
  • 1970-01-01
  • 1970-01-01
  • 2016-08-05
相关资源
最近更新 更多