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

Prevent changes to records when viewing data thru a form

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 poke my finger into their cages. I was sad that Steve Erwin didn't do a spot on Developers before he left us..

Anyway.. Figured I'd be doing pretty good for myself if I could find some assistance here, then back out before I got eaten alive.

MS-Access 2003 w/ Sp1 on Windows XP Pro

Got a pretty table and a form too. The form has a combo box which displays the records associateed with combo box selection. Cannot prevent accidental changes to the records. Want users to VIEW only. NO TOUCHY Da Data. (users is so stewpud)

For editing ..my switchboard has a button which runs a macro to open the table for editing. But when 'viewing' thru the particular form mentioned above, i need the records locked down. No Edits. No Additions. No Deletions.

I've hacked at this for a couple days now. None of the results are what Im after. This has to be an easy fix.. right? ..Christ, I probably sound like a user? Im dead meat.
Sep 10 '07 #1
3 4867
Rabbit
12,516 Expert Mod 8TB
The problem with the standard switchboard is that it doesn't allow you to open a form in that manner. A work around is to create a copy of that form and set those properties that you listed and open that form instead.

Personally, I prefer to create my own switchboards. I actually didn't know that Access had a switchboard wizard until well after I've been developing for a while.
Sep 10 '07 #2
Thanks Rabbit
When I set 'allow edits', 'allow deletions', 'allow aditions', to NO, I can no longer make a selection from my combo box. It drops down, and I can see the list, but it will not allow me to make a selection.

It makes sense, as these properties are for the form, not the record data populating it. Setting these attributes protects my record data by locking the form into a useless state.

This is one of the undesirable results I achieved in earlier attempts.
Of course I can set the DB to read only, but then I can't edit when needs be.

Perhaps there is something I can do using 'On Dirty'..?
Sep 11 '07 #3
Rabbit
12,516 Expert Mod 8TB
Thanks Rabbit
When I set 'allow edits', 'allow deletions', 'allow aditions', to NO, I can no longer make a selection from my combo box. It drops down, and I can see the list, but it will not allow me to make a selection.

It makes sense, as the data in the form fields are locked down nice and tight, however, its locked down on the initially displayed record and will not allow me to even make a selection from my combo box. It must be interpreting the selection as an edit.

This is one of the undesirable results I achieved in earlier attempts.
You can set Allow Edits to Yes but lock the rest of the controls individually through the Locked and/or Enabled property. You can select all the controls but the combo box and set all the properties at once.
Sep 11 '07 #4

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

Similar topics

3
by: Dave Smithz | last post by:
Hi there, Working on the PHP DB I took over I have just come across a problem. When the user presses refresh in some circumstances the command they just performed will be re-performed. In some...
3
by: Vic | last post by:
Dear All, I have a database of laboratory records in Access 2000. There is one form which acts as an interface to input experimetal data. This form incorporates information from several tables....
1
by: Tom | last post by:
hello i have 2 tables linked by a common id. The first table has records with a specific field with numeric values. eg 3 or 6 or 10 etc. What i want to happen is when i create a data entry form, i...
2
by: MLH | last post by:
I have a form frmEditAdminData. Its AllowAdditions property is set to No. I thought this meant the form could not be opened in a manner that allowed the appending of new records to its source...
9
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
4
by: Peter Proost | last post by:
Hello group, what would be the best way to do the next thing: I've got a grid form with about 15000 records, when I double click a row a detail form is opened and the user can modify and save...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
4
by: jbrumbau | last post by:
Hello, I have been successfully using a database I've created for several months to populate an equipment list for a project we've been working on. However, the form has recently stopped working...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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.