Hello
how goes it? I am developing a database which needs approvals from two seperate usetrs before record gets updated. i need ideas for the approval part.
So a record is changed by a user, this event sends a message to admin. Admin A logs in and approves the change. Admin B logs in and approves the change. It is only after the two approvals that the change is made in the main table..
So ideas on how to go about the approval system? any links are appreceated
9 9011 ADezii 8,834
Recognized Expert Expert
Hello
how goes it? I am developing a database which needs approvals from two seperate usetrs before record gets updated. i need ideas for the approval part.
So a record is changed by a user, this event sends a message to admin. Admin A logs in and approves the change. Admin B logs in and approves the change. It is only after the two approvals that the change is made in the main table..
So ideas on how to go about the approval system? any links are appreceated
Two independant Tables which are structurally equal. One Table, let's say tblNonApprovedC hanges, has either none or a single Admin approval, The other Table, let's say tblApprovedChan ges, contains only Records which have been approved by 2 Admins. Once a Record has been saved and approved by 2 Admins in tblNonApprovedC hanges, it is appended to tblApprovedChan ges, then deleted from tblNonApprovedC hanges. I really do not see a simply way to implement what you are trying to accomplish without a parallel/interim Table.
yes, ADezzi thats what i was thinking too..two tables would make life easier....how would you keep track of the two admin conformations though? a bool value? something along those lines that i dont know about?
ADezii 8,834
Recognized Expert Expert
yes, ADezzi thats what i was thinking too..two tables would make life easier....how would you keep track of the two admin conformations though? a bool value? something along those lines that i dont know about?
In the AfterUpdate() Event of your Primary Form, the one based on tblNonApprovedC hanges, place the following code which will ensure that both Admins approve changes before any action is taken: - If Not IsNull(Me![txtAdmin1]) And Not IsNull(Me![txtAdmin2]) Then
-
'Record is already saved, now Append to tblApprovedChanges then,
-
'if no Errors, DELETE
-
End If
NeoPa 32,568
Recognized Expert Moderator MVP
You'd need a way of identifying each user (Network Logon is a good way) then you would have a table of Admins. When someone from the Admin table approves a record then his ID is added to [Confirmation ID 1] of the record unless that is already populated in which case the record is doubly approved and can be moved to the accepted table.
this is what i came up with:
4 tables.
link between first three tables is customer number
[Main] customer info etc including number
[MainTemp] customer number
[MainFinal] customer info etc including number
[UserAccounts] every account is assigned a security rank
user edits record
-email sent to Admin1
-records edited in [Main]
Admin1 logs in and clicks approved
- only customer number is stored in [MainTemp]
-email sent to Admin2
Admin2 logs in aprroves the change
-with customer number from [MainTemp] as the criteria, all the info is copied over from [Main] to [MainFinal]
data is updated after two approvals....ex cept, there will be two huge tables [Main] and [MainFinal] at all times....
so how do i improve this
scratch that....another idea based on what NeoPa said,
2 tables.
[Main] customer info with 2 true/false columns for admin approvals
[MainFinal] customer info
when both are true for any given customer, that customer info gets appended to [MainFinal]
one problem that i am sure to run into..read from [MainFinal] and write to [Main]...how do come around this?
NeoPa 32,568
Recognized Expert Moderator MVP
scratch that....another idea based on what NeoPa said,
2 tables.
[Main] customer info with 2 true/false columns for admin approvals
[MainFinal] customer info
when both are true for any given customer, that customer info gets appended to [MainFinal]
one problem that i am sure to run into..read from [MainFinal] and write to [Main]...how do come around this?
They can't be True/False, as you'd never know which Admin had already approved. It would have to be the admin ID (Name or whatever).
Pseudo-SQL : - INSERT INTO [MainFinal] ([Field1],[Field2],...)
-
SELECT [Field1],[Field2],...
-
FROM [Main]
-
WHERE ([Admin1] Not Is Null)
-
AND ([Admin2] Not Is Null)
Hello
how goes it? I am developing a database which needs approvals from two seperate usetrs before record gets updated. i need ideas for the approval part.
So a record is changed by a user, this event sends a message to admin. Admin A logs in and approves the change. Admin B logs in and approves the change. It is only after the two approvals that the change is made in the main table..
So ideas on how to go about the approval system? any links are appreceated
Hello,
Iam developing nearly same database which contains approval of admin in the case of record changes by users. But i have a linked table and when users change data in this table i want access to send mail to admin for the approval.
What do you think how to build this database?
NeoPa 32,568
Recognized Expert Moderator MVP
Please do not ask your question in somebody else's thread. This is hijacking and is against site rules.
Also, this forum is designed to help out programmers who run into difficulty with their projects. The members who answer questions here are volunteers. Please do not ask them to design your database for you as they get paid to do that as professionals.
If you wish to have a database designed please post in the Jobs forum and our experts will be happy to submit bids on the project.
MODERATOR.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Rey |
last post by:
Howdy, all.
Appreciate your help. Have a one to many relation between a client and
visit table.
In the visit subform, I have a visittype and counselor field which are
comboboxes. If I set either field to drop down via Me.dropdown in the
GotFocus event for the field, each time the client record changes the
visittype or counselor field drops down - only have the GotFocus event set
to one combobox at the moment - unless I move the cursor...
|
by: Gerry Abbott |
last post by:
Hi all,
Is there a convenient way to trap the date/time of the last change to the
data (in the tables) in a database.
(the date modified changes when the file is accessed, irrespective of
changes, so that's of little value)
Thanks,
|
by: NoodNutt |
last post by:
G'day ppl.
can anyone help with a VB code that records if/when a record has been
altered, recording the change as date/time stamp & by whom/who eg the user
logged on at the time.
The DB in question is purpose built on a single stand-alone system. I will
introduce a log-on protocol for any of the 5 users who access the DB, but I
have absolutely no idea how to go about the recording of records that have
been altered.
|
by: uthooker |
last post by:
I have an Access form with some combo boxes in the Form Header that are
enabled/disabled using conditional formatting based on the setting in a
checkbox also in the Header (Combo box = Enabled by default; when
Checkbox = False, Combo Box = Disabled.).
When I open the form, the combo boxes are behaving as expected, and
when I change records (using the standard arrow buttons at the bottom
of the form) to a record with a different setting...
|
by: wwwords |
last post by:
Is there a general method for detecting that a user has changed the
record currently visible on a form, whether this is by hitting PgUp or
PgDn or clicking on a navigation button, even if no change has been
made in any control?
I'm thinking of a situation in which a number of records have been
entered on a form and the user is cycling through them to check the
data entered. I want to be able to detect this and update certain
information...
| |
by: ontherun |
last post by:
Hi,
I have found in one of the thread from Mccarthy, that access has the sound feature to tigger some action.
Akin to my database, i want a pop-up menu with sound or something like that, to display a message "Record has been modified.Please inform the Accountant, if there is change in Total" whenever the user modifies or edit a particulat job record.
i wanna display this messange in "Job" Form.
Also, i need to display the last...
|
by: zivon |
last post by:
is there a way to excute a command on record change ?
I used form_load to check something, but when I go to the next/previews record it doesn't recheck..
Private Sub Form_Load()
If RefBy.Value = "test" Then
ReferredID.Enabled = True
End If
End Sub
|
by: Wayneyh |
last post by:
Hi everyone
When i open frmSales i have disabled the save button. What i want is if any field on the form is changed the save button is enabled. I can't use OnKey Press as the user might tab through the fields, so it needs to be code. I tried the forms On Data Change but it didn't work.
Any ideas are appreciated.
Regards
Wayne
|
by: SCdd80 |
last post by:
Hi,
I am stuck and my head spining...
I hope someone in this forum can help me
I build a tab control which have 2 pages;
1. Planning tab (subform Planning)
2. Execution tab (subform Execution)
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |