项目发布後修改数据源问题? Post By:2011/11/20 19:18:00 [显示全部帖子]
用这代码每次打开项目要确定文件位置,很不方便?
If e.Name = "连接名称" Then Dim dlg As New OpenFileDialog dlg.Filter= "Access文件|*.mdb" If dlg.ShowDialog = DialogResult.Ok Then e.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dlg.FileName & ";Persist Security Info=False" End If End if