Fix For Aprroval Cycle Database

Approval Cycle template has a known bug that skips names when the requestor is
part of the approval list. The below script in the Identify User Event of the
subform ApprovalLogic will solve the problem.

Declare flag as variant.
flag = False

'Populate the array with all names with status = "None" and set CurrentApprover
to whatever number in the list it is
For n = 0 To ListMax
If ApprStatus(n) = "None" Then

'Changes required for when the originator is in the approval list
added the if statement n=0 etc
If flag = False And ApprName(n) <> CurrentUser Then
'change made for when requestor is in the approver list
CurrentApprover = n
Flag = True
End If
'change made for when there is double entries in the approver
If ApprName(n) = CurrentUser And Flag= False Then
'Changes to accomodate for the skipping of authorization
'Added variable flag, if false will get current user and then
change to true.
'This will stop the skipping of the list of authorization.
CurrentApprover = n
flag = True
End If

ApproverList(x) = ApprName(n)
x = x + 1
End If

This was first published in November 2000

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.