VB中ADO控件怎么设置相对路径

2025-05-14 05:57:31
推荐回答(2个)
回答1:

dim file as string
file=App.Path & "\" & "db1_97.mdb"

Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & file & ";Persist Security Info=False"

回答2:

IIS设置启用父路径。