473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Security Startup Dialog

I'm changing from excel to using an html page to open tons of db at
work.
After reading tons of posting about this subject, for simplicity sake
I need the code to run on startup, to change the security settings to
low, so users don't get the message "Some files can harm your
computer". any way I founds this: which I put on the load of the
switchboard; using 97 still. I do NOT get this error when using excel
to open db, just html. Since there are tons of users and db, having
users change their security setting to low in not an option.

dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "full path to your database"
o.visible=true
o.usercontrol=true
set o=nothing

when it reaches
set o = createobject ("access.application") I get a run-time 438
object doesn't support this property or method.
Any idea how to get this to run, or alternative code. help would
greatly be appreciated
Feb 29 '08 #1
2 1897
On Fri, 29 Feb 2008 04:43:23 -0800 (PST), te*********@gmail.com wrote:

HTML page? Do you mean a file with a .htm extension, the extension
typically used for static web pages?
If so, there are MUCH simpler solutions.

If you like to write in Javascript and stay with web-like technologies
you could create a HTA application. CreateObject would not work, but
something like this would:
var objXlApp = new ActiveXObject("Excel.Application");
var objXlWb = objXlApp.Workbooks.Open(strFile);
var objXlWs = objXlWb.Sheets("Sheet1")

If you like to write in vbScript, use the Windows scripting host
(wscript.exe). I took your code and saved it in Notepad as test.vbs,
then ran it from the Run prompt as wscript.exe test.vbs
and it worked. At least CreateObject did. You're on your own with
setting macro security. I would be surprised if it was as simple as
o.automationsecurity=1
but I can easily be persuaded by working code :-)

-Tom.
>I'm changing from excel to using an html page to open tons of db at
work.
After reading tons of posting about this subject, for simplicity sake
I need the code to run on startup, to change the security settings to
low, so users don't get the message "Some files can harm your
computer". any way I founds this: which I put on the load of the
switchboard; using 97 still. I do NOT get this error when using excel
to open db, just html. Since there are tons of users and db, having
users change their security setting to low in not an option.

dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "full path to your database"
o.visible=true
o.usercontrol=true
set o=nothing

when it reaches
set o = createobject ("access.application") I get a run-time 438
object doesn't support this property or method.
Any idea how to get this to run, or alternative code. help would
greatly be appreciated
Feb 29 '08 #2
On Feb 29, 9:49*am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 29 Feb 2008 04:43:23 -0800 (PST), teresaei...@gmail.com wrote:

HTML page? *Do you mean a file with a .htm extension, the extension
typically used for static web pages?
If so, there are MUCH simpler solutions.

If you like to write in Javascript and stay with web-like technologies
you could create a HTA application. CreateObject would not work, but
something like this would:
* * var objXlApp = new ActiveXObject("Excel.Application");
* * var objXlWb = objXlApp.Workbooks.Open(strFile);
* * var objXlWs = objXlWb.Sheets("Sheet1")

If you like to write in vbScript, use the Windows scripting host
(wscript.exe). I took your code and saved it in Notepad as test.vbs,
then ran it from the Run prompt as wscript.exe test.vbs
and it worked. At least CreateObject did. You're on your own with
setting macro security. I would be surprised if it was as simple as
o.automationsecurity=1
but I can easily be persuaded by working code :-)

-Tom.
I'm changing from excel to using an html page to open tons of db at
work.
After reading tons of posting about this subject, for simplicity sake
I need the code to run on startup, to change the security settings to
low, so users don't get the message "Some files can harm your
computer". any way I founds this: which I put on the load of the
switchboard; using 97 still. I do NOT get this error when using excel
to open db, just html. Since there are tons of users and db, having
users change their security setting to low in not an option.
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "full path to your database"
o.visible=true
o.usercontrol=true
set o=nothing
when it reaches
set o = createobject ("access.application") I get a run-time 438
object doesn't support this property or method.
Any idea how to get this to run, or alternative code. help would
greatly be appreciated- Hide quoted text -

- Show quoted text -
Yes I mean a html or htm page. I had never heard of a hta before. I
can't code in Javascript. I tried the vbScript thing but it's blocked,
so I have to accomplish this using htm. Any other ideas
Mar 3 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Parris | last post by:
Is there a trick to getting a Windows Service to start before a user has logged on to a machine? Using VS.net 2003 on a Windows 2000 machine, I have built a Windows service using vb.net . I have...
7
by: Newbillian | last post by:
Is there some way of using vba to automate the processe of joining an Access 97 security workgroup? I typed wrkgadm /? at a command prompt and it just opens the gui, so I'm not sure what the...
1
by: DD | last post by:
I have conquered the previous problems and i am now at the stage of running the permissions for the Guest account My problem is: I dont want the guest to be able to open the tables qrys etc only...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
4
by: Tony Vitonis | last post by:
Hello. I've written an app that I want to "live" in the system tray. I want it to start up with just a tray icon showing, and if the user selects "Settings..." from the icon's context menu, to...
2
by: Glyn | last post by:
Hi All, Access 2000 SR1 Windows XP SP2 Word 2000 I have a button on a form (frmMainMenu) that calls a second form (frmContractPrint). In the second form is a combo box (cboContractNumber)...
1
by: Michael White | last post by:
OK, here's what I need to do... Start my app from Sub Main() In Sub Main(), display a login dialog. This dialog creates a singleton User object which contains all the code necessary to...
5
by: Rocky | last post by:
My Access 2007 file fails to open on a machine with the 2007 Access runtime version installed. It comes up with a Security alert message. Is there a security setting in the Access Database that...
4
by: Jeff Ciaccio | last post by:
I'm new to vb.net and was wondering what the syntax is for application events such as starting up or shutting down. For example, if you would just like to get a user's name with an input box when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.