D
Delali
Hi,
I am trying to connect to and query an access database
and i've tried using Microsoft Jet workspace and
ODBCDirect workspace.
i prefer to use Microsoft Jet workspace becuase it
uses "" to identify variables in SQL statements which
allow the character ' in variable names. Using ODBCDirect
workspace require using ' to identify variables in SQL
statements and therefore the variable cannot have the
character ' in it.
The problem i have now is that i can't connect to a
database with a password using Microsoft Jet workspace.
i have the following code but it is not working:
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbs = wrkJet.OpenDatabase(fname, False,
False, "DATABASE=MS Access Database;PWD=xxx;UID=Admin")
i think the problem is with the connection string. can
anyone please help me?
I am trying to connect to and query an access database
and i've tried using Microsoft Jet workspace and
ODBCDirect workspace.
i prefer to use Microsoft Jet workspace becuase it
uses "" to identify variables in SQL statements which
allow the character ' in variable names. Using ODBCDirect
workspace require using ' to identify variables in SQL
statements and therefore the variable cannot have the
character ' in it.
The problem i have now is that i can't connect to a
database with a password using Microsoft Jet workspace.
i have the following code but it is not working:
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbs = wrkJet.OpenDatabase(fname, False,
False, "DATABASE=MS Access Database;PWD=xxx;UID=Admin")
i think the problem is with the connection string. can
anyone please help me?