473,804 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying permissions to a newly created mdb file

NB
Hi

This has been tickling my mind for quite some time. Can someone tell
me if Access 2003 has a solution for it.

After a period of development, your front end will definitely bloat
despite all the compacting and decompiling you do. The best solution
so far I have found is to create a fresh new mdb file and import all
table (links), queries, forms, reports, menu, macros and modules. That
is great: file size shrinks and it runs faster (sometimes a bit,
sometimes alot)

But say if you have 80 queries, 65 forms, and dozens of reports with
10 user groups. This is a real pain in the butt to recreate all the
object permissions.

I could not find anything on www.mvps.org/access
Someone can enlighten me?

Thanks
NB
Nov 12 '05 #1
1 1484
I am not aware of a mechanism to import all of your permissions into a
new mdb but you can develop your own using DAO. First, create a table
to record the permissions. Your table will need fields for container
name (e.g. Tables, Forms, Reports, etc.) , document name, and one long
integer field for each of your user groups. Write one procedure that
enumerates all objects and stores the permissions for each user group
in the table. Write another procedure that reapplies the permissions
for each record in the table. Take a look at help and review the
Containers and Documents collections, and the UserName and Permissions
properties of the Document object for more information. Search the
Google groups archives for permissions and you will probably find
examples. HTH

Rick Collard
www.msc-lims.com

On 8 Dec 2003 15:56:44 -0800, ni******@lycos. com (NB) wrote:
Hi

This has been tickling my mind for quite some time. Can someone tell
me if Access 2003 has a solution for it.

After a period of development, your front end will definitely bloat
despite all the compacting and decompiling you do. The best solution
so far I have found is to create a fresh new mdb file and import all
table (links), queries, forms, reports, menu, macros and modules. That
is great: file size shrinks and it runs faster (sometimes a bit,
sometimes alot)

But say if you have 80 queries, 65 forms, and dozens of reports with
10 user groups. This is a real pain in the butt to recreate all the
object permissions.

I could not find anything on www.mvps.org/access
Someone can enlighten me?

Thanks
NB


Nov 12 '05 #2

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

Similar topics

1
1305
by: Rik Hoeflaak | last post by:
Hi there, I'm struggling with this problem: in a website I developed, XML files are created by users of the site to describe. The creation is OK, the (new) file is present, but it can not be read by any website visitor. How can the default permission become at least readable? It's a ASP script running on W2K, using the
4
2300
by: ewallig | last post by:
Hi all, need help - As part of a ASP-based AD account creation tool, I need to set file permissions on the newly-created user's home folders. I'm using CACLS to do this and calling it from within the ASP page. The page is used by instructors who do not have admin rights (OU that they work in has been delegated to them and they have "Modify" and various "Special" NTFS permissions on the home share, including "Change Permissions". I'm...
11
2125
by: KK | last post by:
Hello, I am running into a problem for copying files between 2 different servers. I am using the following lines of code to do that, but I get a 'permission denied' error Set fso = Server.CreateObject("Scripting.FileSystemObject") strSourceFile = "\\server1\file1.doc" strDestFile = "\\server2\file1.doc" fso.CopyFile strSourceFile,strDestFile, true
6
2612
by: ReidarT | last post by:
I am copying a file from a network drive to a local PC. Could someone give me a short example on how to get permission to copy the file from R: to C: I have figured out that if I use Imports System.Security.Permissions and Dim oFp As FileIOPermission = New _
4
2422
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug (setting breakpoint in page_load()). I'm getting the following message: "Unable to start debugging on the web server. An error occurred that usually indicates a corrupt installation (code 0x80004002). If the problem persists,
1
1535
by: emilysmith10 | last post by:
I am creating a new database by copying a template .mdb file. This template has assigned permissions for each of it's objects. I know that just by copying the file, I lose these permissions. Is there any way to import them or set each of them through software?
2
8099
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a network drive, copying the same files from the same source drive and to the same destination drive, it gives me the following exception: System.Security.SecurityException: Request for the permission of type...
0
911
by: tsupchurch | last post by:
Good day everyone, I've been searching for a solution to the problem of copying folders using an ASP.NET on a windows 2000 server with .net 1.1. I have tried using the directory class and the file system object and both succesfully copy folders, however they do not maintain permissions. Here is the sample code: If (overwrite) Then file.CopyTo(System.IO.Path.Combine(destDir.FullName,
3
4463
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007 pro). The database has been used for a long time and we haven't upgraded it to a 2007 version database. 2. One of the PC's hosts the "master" database, the 2 others are using Replica's of "master" database. At the end of each work day, the...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.