password in access files

Post Reply
hgarcia
Posts: 33
Joined: Thu Aug 10, 2006 12:23 pm
Location: México D.F
Contact:

password in access files

Post by hgarcia »

Does somebody knows how to put a password in this file type via fivewin and xharbour?
I can open read write and close the access table but i don't know how put a password to encrypt it

Thank for any help
Héctor García
México, D.F.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: password in access files

Post by Enrico Maria Giordano »

Code: Select all

FUNCTION MAIN()

    LOCAL oJro := CREATEOBJECT( "JRO.JetEngine" )

    LOCAL cConStr1 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=mymdb.mdb"
    LOCAL cConStr2 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=newmdb.mdb;Jet OLEDB:Database Password=newpwd"

    oJro:CompactDatabase( cConStr1, cConStr2 )

    RETURN NIL
EMG
hgarcia
Posts: 33
Joined: Thu Aug 10, 2006 12:23 pm
Location: México D.F
Contact:

password in access files

Post by hgarcia »

sorry but I tried your solution and I have an ole error in compacdatabase instruction called by tole the name of the error is "error jro.jetengine/16389 sure I'm making something wrong
Héctor García
México, D.F.
Post Reply