473,387 Members | 1,673 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,387 software developers and data experts.

problem with startup properties

Hi all,

I want urgent feedback on my request. I have to clear the AllowSpecialkey from the startup properties based on the workgroup user security so that the user may not see the database window and VBE. My Application is multiuser Application and it runs thru Terminal Server services. Application sets the AllowSpecialkey properly but it is not working for the first time. For example, say application will clear the AllowSpecialKey for users from security group X and will set the AllowSpecialKey for users from Security group Y. Now when the user from X logs in, Applications sets the AllowSpecialKey to false via script called from AutoExec Macro. But the changes are not reflected immediately. When user from X logs in for the second time , then the Application behaves in desisred manner .

Can anybody help me in this. I want the Application to have the changes took place at the time user logs in.
Jul 11 '06 #1
1 1899
zzqxxq
28
At the point that you run the AutoExec macro, the MS Access environment is already created so that its too late to change to the global environment (such as setting or resetting AllowSpecialKey) . The MS Access help file on AllowSpecialKey states specifically that this does not take effect until the next time the database is opened so you will not get the result you want via this method.

Access does provide command line startup functions however that may fit the bill - in Access help type in "command" and one of the subjects will be command line parameters - check them out especially /wrkgrp - you may be able to create a workgroup profile for each workgroup that will do what you want on startup based - there are other options also such as /user etc. I think this will help you
Jul 13 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: robert walker | last post by:
hi all, to my webapp named mrf, i have added load-on-startup tag to mrf\WEB-INF\web.xml so i added a snippet like so <servlet> <servlet-name>loadDbProperties</servlet-name>...
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...
1
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
1
by: deko | last post by:
I'm trying to set startup properties with code after I make an MDB into an MDE. I have this code in the startup form's Form_Open event: If IsItMde Then For Each var In Array("Perform Name...
10
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
1
by: David L Wright II | last post by:
I am trying to access a mdi parent form's properties and methods outside of the mdi parent form's class module. I keep getting "Reference to a non-shared member requires an object reference"...
4
by: Chris Ashley | last post by:
I have a class called App set as the startup object with the following code: Friend Class App Shared Sub Main() Dim FrmMain As New MainForm Application.Run(FrmMain) End Sub End Class In...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
3
by: cj | last post by:
I found a good tutorial for making a windows setup program so I'm doing that. But when I add folders to the target machine list they don't seem to have one for the all users startup folder. I...
1
by: ApothecarySW | last post by:
Hello all, I have created a class to track the session details on a database we use at work. The class stores information about the current user, start time, end time, etc. The object...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.