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

Custom table property to prevent overwrite?

Is there a way to set a custom property on Access tables and/or queries to
prevent them from being overwritten by import wizards? Any Access database
can be easily destroyed if a user mistakenly imports an object (or Excel
spreadsheet) with the same name as an existing table or query.

Import wizard: "Overwrite existing table/query?"

User: yes

Import wizard: overwrites key table or query

User: whoops... I destroyed the database
Nov 13 '05 #1
6 3043
On Tue, 20 Sep 2005 18:54:03 -0700, "deko" <de**@nospam.com> wrote:

No.
Good backups, and plenty of tar and feathers, should take care of this
issue.
If you want to go to extremes, perhaps there is a way Access security
can prevent some from making inadvertant changes.

-Tom.
Is there a way to set a custom property on Access tables and/or queries to
prevent them from being overwritten by import wizards? Any Access database
can be easily destroyed if a user mistakenly imports an object (or Excel
spreadsheet) with the same name as an existing table or query.

Import wizard: "Overwrite existing table/query?"

User: yes

Import wizard: overwrites key table or query

User: whoops... I destroyed the database


Nov 13 '05 #2
Sky
In my experience, the Access import tool does not overwrite existing objects
and instead adds a unique suffix to avoid conflicts.

For example, if you have a table X, and then import an external table also
called X, then the imported version is renamed to X1, and the original X is
not disturbed.

Now exporting is a different matter, in that case Access prompts for
overwriting.

- Steve

"deko" <de**@nospam.com> wrote in message
news:WM********************@comcast.com...
Is there a way to set a custom property on Access tables and/or queries to
prevent them from being overwritten by import wizards? Any Access database can be easily destroyed if a user mistakenly imports an object (or Excel
spreadsheet) with the same name as an existing table or query.

Import wizard: "Overwrite existing table/query?"

User: yes

Import wizard: overwrites key table or query

User: whoops... I destroyed the database

Nov 13 '05 #3
> In my experience, the Access import tool does not overwrite existing
objects
and instead adds a unique suffix to avoid conflicts.

For example, if you have a table X, and then import an external table also
called X, then the imported version is renamed to X1, and the original X
is
not disturbed.


Try it with the Import Spreadsheet Wizard
Nov 13 '05 #4
> No.
Good backups, and plenty of tar and feathers, should take care of this
issue.


I go through all kinds of trouble to disable shift bypass, hide menubars,
etc, and the Access team lets users overwrite any internal table or query
with nothing but an "are you sure?" ! ! ... they're the ones who should get
the tar and feathers

That import spreadsheet wizard is helpful, but dangerous.
Nov 13 '05 #5
Create a new Workgroup File.

Create a new user in the new workgroup file.

Use the new workgroup file and user.

Create a new table in the target database.

Remove the "alter design" permission for the Admin user.

Discard the new workgroup file if you like.
Use the original workgroup file.

Now "Admin" is not the owner of the table, and is not a member
of the Admins Group that created the table, and does not have
"alter design" permission on the table,

and can not delete the table.

To delete or alter the table, you will need to use your special workgroup
file.

(david)
"deko" <de**@nospam.com> wrote in message
news:WM********************@comcast.com...
Is there a way to set a custom property on Access tables and/or queries to
prevent them from being overwritten by import wizards? Any Access
database can be easily destroyed if a user mistakenly imports an object
(or Excel spreadsheet) with the same name as an existing table or query.

Import wizard: "Overwrite existing table/query?"

User: yes

Import wizard: overwrites key table or query

User: whoops... I destroyed the database

Nov 13 '05 #6
> Create a new Workgroup File.

Create a new user in the new workgroup file.

Use the new workgroup file and user.

Create a new table in the target database.

Remove the "alter design" permission for the Admin user.

Discard the new workgroup file if you like.
Use the original workgroup file.

Now "Admin" is not the owner of the table, and is not a member
of the Admins Group that created the table, and does not have
"alter design" permission on the table,

and can not delete the table.

To delete or alter the table, you will need to use your special workgroup
file.


Sounds interesting. I will do some testing with this. Thanks for the tip.
Nov 13 '05 #7

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

Similar topics

7
by: Martin Schulze | last post by:
Hello, i tried to compose myself a custom usercontrol which is derieved from System.Windows.Forms.UserControl. It contains 2 comboboxes and one textbox (which are also custom controls, but...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
15
by: Sam Kong | last post by:
Hello! I got recently intrigued with JavaScript's prototype-based object-orientation. However, I still don't understand the mechanism clearly. What's the difference between the following...
3
by: Kai Kuehne | last post by:
Hi list! It is possible to overwrite only one function with the property-function? x = property(getx, setx, delx, 'doc') I just want to overwrite setx, but when I set the others to None, I...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
1
by: Wimpie van Lingen | last post by:
Hi I've created a control that inherits from the button control. The control has one additional property called ButtonType which can be set to Ok, Cancel, New, Edit, etc. When the ButtonType...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.