473,554 Members | 3,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting approval/denial for changes made to forms to be implemented in a table?

33 New Member
I have a database created with a master client table and forms to view the client information and currently changes can be made via the forms. I need to lock the database so that others can still view all the forms but if they make a change, an email will be sent to me through outlook – so I can either approve or deny the changes. Essentially I don’t want anyone to be able to finalize the changes in the “master list” until I approve them.

Please help me in finding the easiest way to do this. I have very limited experience in VBA but have been working very hard at it in the past week.

Much thanks in advance.
Jul 24 '12 #1
29 4553
Rabbit
12,516 Recognized Expert Moderator MVP
Because of the nature of Access being both the server and client, and because of it's poor security features, you can't really lock the user out of the data. You can make the form read only but they can always change it in the underlying tables.
Jul 24 '12 #2
twinnyfo
3,653 Recognized Expert Moderator Specialist
robtech4,

One potential option would be to have the user be able to view the data, and any changes they made would be added to another table with identical fields. Then, after the changes, the e-mail goes to you. You pull up an adminstrator level of the form which compares the two entries. You could be able to then approve all, some or none of the changes via command buttons. Either way, this sounds pretty involved.....

Another option would be to simply have a memo field in the record, which is the only updateable field on the form. Then, when anyone updates that field, an e-mail is sent and you could review as necessary from an adminstrator form.

That might get you pointed in the right direction. There may be multiple ways to skin this cat, some more efficient than others.
Jul 24 '12 #3
robtech4
33 New Member
Twinnyfo,

Wow, great solution! If I were to create a replica form and below each field insert another box (updateable field), what would be the process for setting up the "approve/deny" button so that once the "approve" button is clicked, the master list would automatically change out the old information for the new information? Also, could you please advise on the most convenient way to set up the email button.

Again, your time and expertise are much appreciated.

@twinnyfo
Jul 24 '12 #4
twinnyfo
3,653 Recognized Expert Moderator Specialist
robtech4,

The simplest solution would be to have code associated with either the AfterUpdate event (which would send you an e-mail after EVERY update to a record), or, better yet, after the user makes their recommended changes, they click a "Submit" Command Button which would run code behind the scenes.

If you are thinking a replica form, I would also suggest that you have two tables that are identical (with additional fields for the user requesting changes and a reason), with the primary key of the original table serving as a key for the second. So that when you set the record source for the forms, a subform with the secondary table's data would be linked Master/Child. Your approval would update the original table. Your choice on what to do with the request after you're done.

For sending the e-mail, DoCmd.SendObjec t works pretty easily, with acSendNoObject as the first argument. It's really easy to create a canned response for the body. I'm just very familiar with that method because I usually send reports as attachments, but there are other methods.

Experiment a bit with these tables/forms/code and let us know what you come up with. If you hit serious road blocks, I am glad to continue to assist.

Warmest regards
Jul 26 '12 #5
robtech4
33 New Member
Twinnyfo,

I am working on splitting the database and using two seperate passwords for the front and back ends of it in order to eliminate visibility of other users. I think it may work, or I am heading straight into a death trap...not too sure. Worst case scenario I can probably hide the navigation pane for the other users since they all have just about no access experience.

As far as the email capability I am just about to get started on that part.

Thank you for your pointers as they have been very helpful thus far.

-Rob
Jul 26 '12 #6
twinnyfo
3,653 Recognized Expert Moderator Specialist
Rob,

Also keep in mind that splitting a database has to do with functionality and protecting your data, not security. If you establish two passwords, your users will still need to access that back end in order to update data. No mater where you put your BE, your users must have access to it, and if they have access to it, they can find your data and ultimately mess with it. We just hope, as programmers, that they know little enough to just open the database FE that WE give them and use the forms provided.

I know this is going away from the original question, but I hope the mods will allow this brief discussion, because I don't want you to think that the FE/BE split solves security issues. It just prevents you from losing data if the FE crashes (which happens far more often for the FE than the BE).

You should still hide the navigation pane, as long as YOU know how to access the data tables and their properties safely.

I hope this gives a bit of insight into why you may be doing what you are doing. It is a good practice... just be aware of why you do it.

Regards,
twinnyfo
Jul 26 '12 #7
robtech4
33 New Member
Twinnyfo,

To say the least you were correct, as I tested the database after I found you would need both passwords.

Back towards my original question...
Now that I have been able to create a form to update my master list and a table that records everychange I have encountered a new issue. Although I can see what changed, I can't stop it or revert it back without going into the master table and doing it manually. Is there an easy way to create a form to show me the original data vs. the changed data (currently have this in a table) but I want a form to view each change one-by-one with a button to approve--move new data into the master table, or deny--disregard the changed information and do nothing to the master table.

Again, you have been of great help! Thank you!

-Rob
Jul 26 '12 #8
twinnyfo
3,653 Recognized Expert Moderator Specialist
Rob,

For clarity, I will refer to the data that you have control over (the "real" data) as the master table and the changes requested as the "replica" table.

In your case, I would never allow the user the ability to modify the actual data in the master table. When they want to modify a record, create a new record in the replica table based on data in the master table. This pops up in a form that allows them full access to edit it, because it is the replica table and never touches the master table.

When they complete their updates, they click submit, which saves the data to the replica table, sends you and e-mail and closes the form.

YOUR form would list BOTH sets of data, from the master table and from the replica table. You could even set up conditional formatting so that any entries that differ from the master table show up in red or yellow. A rather advanced way to do it woul dbe to have command buttons associated with every field, which would have their captions updated with the replica table's data and simply clicking those buttons would update the master table.

As you see, you could really allow your imagination to play with this one. I think you are on the right track here. Glad to assist in your project!

-Greg
Jul 26 '12 #9
robtech4
33 New Member
Greg,

I now have the audit set up to record changes in the replica table without altering the master table and it is working great.

As I attempt to create a form to list both sets of data to show the changes made I am having much trouble. The sheet has 63 columns which each contain about 15 characters of data. Everytime I try to create a form it says it is too big. Also, I love the idea of the conditional formatting and will try to figure out how to implement the command buttons for each field for the approve/deny feature.

I know I have asked a lot already but I am also struggling with the code for sending the email when clicking the 'submit' button. Any advice on this would be very helpful.

Thank you! Thank you! Thank you!

-Rob
Jul 27 '12 #10

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

Similar topics

0
1283
by: Chuck | last post by:
Good Morning: Has anyone in this newsgroup had experience with emailing changes made on a xml datagrid using ASPEmail? I currently have the table loading correctly with the correct data. When I press the submit button however I only get the table no data in the received email. Any suggestions would be appreciated. Chuck
6
2325
by: mike11d11 | last post by:
I'm trying to create an application that will have multiple users working off a table on a SQL server. Since multi users will be updating different records at any given moment, how can i get those changes and merge them into my current Dataset. I've been playing around with the GetChanges method and Acceptchanges but they just dont seem to...
1
3491
by: mankolele | last post by:
Hi all Is there someway to track changes made to data in a mysql database? Like someone changes a phone number in a record on a form -Is there a way to find out what changes were made to what fields for what records and when they were changed and what the record looked like before the change? And also record the logged in user that made the...
6
4306
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking browser's "Back" button, the changes made to the multiple select is not preserved. (It shows the initial value). While all the other user...
14
1991
by: smugcool | last post by:
HI all, I wanted to monitor changes made in any excel file of each and every cell by various users in networking system. kindly provide some guidelines how to create the software. Regards Anup kumar
3
4905
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that has the "include" code in it which includes another page that displays information. I also have an upload page that allows users to upload a simple html document onto the server. The include code calls that html page to display the text on that page. The problem is when the user uploads that html page, the aspx...
1
2378
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that contains an include section which calls an html page for text to be displayed on the aspx page. I also have an upload page that allows users to upload a simple html page with the same name everytime and places it on the server. My problem is that the aspx page does not update to reflect the changes made to the...
3
1234
by: tabakaka | last post by:
how do i tell the user if the changes made in an open window or form on vb.net are updated or not after accidentally closing the window?
5
5167
by: vovan | last post by:
I have set of controls (Textboxes, checkboxes etc) along with the Grid on Windows Form. I use BindingSource to populate both Grid and the set of Controls. User selects the record in the grid and all controls are populated with data from the selected row. The grid is going to be read only. Textboxes, checkboxes are going to be read/write....
8
4766
by: jmarcrum | last post by:
Hello all, i have a continuous form that displays about 1000 records and opens when I click a button. When the form opens, the user has the option of checking a checkbox that is located beside each record. The checkbox is labeled "Move" (for moving multiple records at a time to another year). Of course, the checkbox is set as a control...
0
7516
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...
1
7551
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7881
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...
0
6131
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...
0
5147
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...
0
3550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3539
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2012
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
0
831
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...

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.