Jet 4.0 + DAO 3.6

I've 2 problems. On my computer is instaled MS Jet 3.51 and MS Jet 4.0.

1)
I'd like to use MS JET 4.0, bud I don't know how? By opening a database is Jet 3.51 used.

2)
MS JET 4.0 provides ROW-level locking. How can I use this feature with DAO 3.6?

Thank You!


neuwirthAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tirupur_selvaCommented:
Assuming that you are using ADO, try the following:
Put this in a module:

Global adoCon As New ADODB.Connection
strdatabase = app.path & "\YourDBName.Extension"

adoCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & strDatabase
adoCon.Open

0
neuwirthAuthor Commented:
Thx, but I need the solution for JET + DAO.

I know how to JET 4.0 and ADO.
0
przemekCommented:
VB6 & VB5 works with DAO and JET 3.51.
Data Control can works only with JET 3.51
If you want to connect to JET 3.6 database ( Access 2000 ) in VB you have to use ADO ( It is possible with Microsoft ADO Data Conrol or Data Environment - VB6 )
You can also use DAO + Access 2000 ODBC Driver, but I think ADO is better way.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

neuwirthAuthor Commented:
How can I use Access 2000 ODBC driver?
0
rondeaujCommented:
to use DAO4.0:


'in old version of dao you had to:
'dim db as database
'in 4.0 you have to
Dim Db as DAO.DATABASE
dim rs as recordset


this should work no problem
0
gwambCommented:
Hi, I had the same problem.

So look at this.

1) DAO 3.6 automatically use JET 4.0. But DATA CONTROL use by default JET 3.5. How to use DATA CONTROL with JET 4.0 is described in Q238401.

2) DAO 3.6 cann't check RLL, but OLE DB (ADO) do.

3) JET has this feature: If first connection to some MDB use RLL, then all connections use RLL.

4) So if u want to use DAO and RLL u have to open MDB with ADO with RLL and then open this MDB with DAO. Now u can close ADO connection.

HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
neuwirthAuthor Commented:
Thank you gwamb for infos.
I don't know about this feature with MS Jet and RLL. It works fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.