patflat Posted October 20, 2007 Posted October 20, 2007 Hello.I am using Win PE 2.0I am trying to connect to an MDB-file through an HTA-script.But I only get this error.safety settings on this computer prohibit accessing a data source on another domainHow can I change the settings for this in WinPE?Or can I access to the DB in another way.I am now trying this method.Set Con = CreateObject("ADODB.Connection")Con.open("driver={Microsoft Access Driver (*.mdb)};dbq=Z:\Share\Scripts\computers.mdb")I have also tried with Jet4, but that doesn't work at all.
patflat Posted October 20, 2007 Author Posted October 20, 2007 When I try the same thing with an VBS-file everything work as it should.Well, that does not help me cause the system depends on HTA. :-(How have you guys did to access some sort of database through HTA?
zorphnog Posted October 22, 2007 Posted October 22, 2007 (edited) I've never tried accessing a database, but I believe your issue results from IE zone settings. In your software registry hive goto the key: SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones. For each zone (0-4), ensure that the value for the 1406 entry is 0. I'm fairly certain that zone 3 is the only one that matters, but I'm not sure so just try all of them.Heres a M$ page about zones and their settings: http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true Edited October 22, 2007 by zorphnog
patflat Posted October 22, 2007 Author Posted October 22, 2007 Thanks for your reply.I change the settings for 1406 on all zones but I still get the error-message.I think that I just might call an VBS-file to do the database-tasks for me and then pass the info to the HTA in some way.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now