在BeforeConnectOuterDataSource事件中,
有三个数据源,如何启动软件的时候,分别连接上?
If e.Name = "project" Then
e.C & ProjectPath & "data\" & "pro.mdb;Persist Security Info=False"
End If
If e.Name = "costdata" Then
e.C & ProjectPath & "data\" & "costdata.mdb;Persist Security Info=False"
End If
If e.Name = "menu" Then
e.C & ProjectPath & "data\" & "menu.mdb;Persist Security Info=False"
End If
是这样吗?
ProjectPath 改为 e.ProjectPath