473,396 Members | 1,921 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.

how can i prevent users deleting the record when they are viewing datasheet view

23
Hi
Every one
how can i prevent users deleting the record but edit on table when they are viewing datasheet view through "SELECT QUERY"

I am using user & password table with VB CODE for securing the database.

thanks In Advance
Dec 23 '13 #1
3 4067
twinnyfo
3,653 Expert Mod 2GB
Are the users viewing the query or is this on a form? If it is a query, if the recordset is updateable, you can't prevent this. If it is on a form, you can set the Enabled and Locked properties of each field to No and Yes, respectively.

Please provide more information.
Dec 23 '13 #2
MikeTheBike
639 Expert 512MB
Hi

If you are using a Form in Datasheet View, then an alternative to twinneffo's solution, you could set the 'Allow Deletions' property to No in the fprm's property dialogue in design view. This will still allow editing unless you also set the 'Allow Edits' property also to No.

HTH

MTB
Dec 23 '13 #3
zmbd
5,501 Expert Mod 4TB
You also need to tell us which version of Access you are using.

Keep in mind, that almost everything you do in Access to secure the database can be circumvented by a knowledgable user.
Dec 23 '13 #4

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

Similar topics

1
by: Ralph | last post by:
Hi My users are going to toggle back and forth between DataSheet and Form view. This eliminates the need for a pile of queries <g> Anyway, I would like my form to be viewed at the current size...
1
by: Yuki | last post by:
I am trying to find out if I can have a specific record that has been selected in a list box be opened in datasheet view. I can't seem to find where this can happen or what I need to use to make...
0
by: ET | last post by:
We have two tables... one with primary key ID and second table with secondary key to the ID in the first table... Now, they query pulls records from both tables, looks like this: SELECT...
1
by: Macbane | last post by:
Hi, I am a bit stumped with this. I have checked the archive but I can't seem to find a problem like this. I have a form for entering a new record. I am trying to envisage the user deciding to...
16
by: ulam | last post by:
I have a form shown in datasheet view, and I have some actions that require that form to be requeried with a delete operation, however number of rows in the datasheet view remains constant with a...
3
by: Kalaine | last post by:
MSAccess 2003: Users tab through the data entry fields on a form, and accidently tab to the next record thereby erroneously inserting a record. What can I code in the Form_BeforeInsert to prevent...
3
by: mfetterhoff | last post by:
Hello Experts.. Im checking out the other side of the tracks here.. always been a Systems Analyst kind of guy. Developers are a touchy and unpredictible lot. I try to give them their space and never...
1
by: gnews | last post by:
I'm learning Access (2002) as I go, but I can't find how to open a form from a datasheet view. I want to be able to view records in the datasheet and click on a link to open a form to allow me...
1
by: ncsthbell | last post by:
I think I am just having a 'brain fog' moment... I can not remember how to do this. I have a main form and on the main form I have a subform(sfDetails). My subform is in datasheet view. I put a...
6
by: Joe Y | last post by:
I have a MainForm containg a datasheet SubForm. I want Access to alert user when closing or leaving the record in the MainForm if there is any data change. To users, adding or deleting record in...
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
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
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,...

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.