473,320 Members | 2,107 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,320 software developers and data experts.

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 1465
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
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...
4
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...
11
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 =...
6
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...
4
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...
1
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...
2
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...
0
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...
3
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.