"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message news:<##0BGsAjDHA.888@TK2MSFTNGP09.phx.gbl>...[color=blue]
>
www.able-consulting.com/ado_conn.htm
>
> more below
>
> Robbie wrote:[color=green]
> > "John Blessing" <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote in message
> > news:<nZ_fb.7561$QH3.3766@newsfep4-winn.server.ntli.net>...[color=darkred]
> >> "Laphan" <news@FrozenMoles.co.uk> wrote in message
> >> news:blpsh4$dur$1@titan.btinternet.com...[/color]
> > As per your suggestion, I changed it to the following:
> >
> > strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> > Server.MapPath("mydb.mdb") & ";Jet OLEDB:Database
> > Password=kitkat,admin,"[/color]
>
> How could this possibly work? I assume the password is "kitkat", not
> "kitkat,admin".
>
> Unless you have a workgroup-secured database, you do NOT need to supply a
> user name. You only need to supply a password if the database is
> password-protected.
>
> Bob Barrows[/color]
Dear Bob
Thanks for your reply.
John (the other poster) kindly sent me some MS stuff on this so I
copied and used the following:
strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.Mappath("mydb.mdb") & ";Jet OLEDB:Database Password=kitkat"
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Connectionstring = strDSN
oConn.Open
However when I run this I get the following error message:
Microsoft JET Database Engine error '80040e14'
Syntax error in parameters clause. Make sure the parameter exists and
that you typed its value correctly.
If I use the above path and password in a normal ODBC connection it
works fine.
Can u tell what I am doing wrong?
Rgds
Robbie