password in access files

password in access files

Postby hgarcia » Mon Mar 26, 2007 2:28 am

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.
hgarcia
 
Posts: 33
Joined: Thu Aug 10, 2006 12:23 pm
Location: México D.F

Re: password in access files

Postby Enrico Maria Giordano » Mon Mar 26, 2007 8:16 am

Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

password in access files

Postby hgarcia » Mon Mar 26, 2007 12:38 pm

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.
hgarcia
 
Posts: 33
Joined: Thu Aug 10, 2006 12:23 pm
Location: México D.F

Re: password in access files

Postby Enrico Maria Giordano » Mon Mar 26, 2007 12:46 pm

I don't know. My sample works fine here.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests

cron