T
TL
Hello.
From a adp project connnected to a MSDE database, i have local setting in a
local mdb file.
The connection with ADO to the mdb is only read access.
The connexion with DAO works fine but always give me a log windows and a
error message at the first connection to the mdb database. The second
connection is successfull without any log window or error.
I whant to connect to the mdb file with DAO without error message and
without log window.
Can someone hepl me? Thank you.
My code:
Global MyWorkSpace As dao.Workspace
Global MyDbMdb01 As dao.Database
Global rs As dao.Recordset
Private Sub Form_Open(Cancel As Integer)
Set MyWorkSpace = DBEngine.CreateWorkspace("PciWS01", "TheLogOfThierry",
"ThePwdOfThierry")
Set MyDbMdb01 = MyWorkSpace.OpenDatabase("C:\MyLocalDB.mdb")
Set rs = MyDbMdb01.OpenRecordset("SELECT * FROM ListCrit01",
dbOpenDynaset)
Set Me.Recordset = rs
.....
From a adp project connnected to a MSDE database, i have local setting in a
local mdb file.
The connection with ADO to the mdb is only read access.
The connexion with DAO works fine but always give me a log windows and a
error message at the first connection to the mdb database. The second
connection is successfull without any log window or error.
I whant to connect to the mdb file with DAO without error message and
without log window.
Can someone hepl me? Thank you.
My code:
Global MyWorkSpace As dao.Workspace
Global MyDbMdb01 As dao.Database
Global rs As dao.Recordset
Private Sub Form_Open(Cancel As Integer)
Set MyWorkSpace = DBEngine.CreateWorkspace("PciWS01", "TheLogOfThierry",
"ThePwdOfThierry")
Set MyDbMdb01 = MyWorkSpace.OpenDatabase("C:\MyLocalDB.mdb")
Set rs = MyDbMdb01.OpenRecordset("SELECT * FROM ListCrit01",
dbOpenDynaset)
Set Me.Recordset = rs
.....