G
Guest
Hi,
Scenario:
I have a table which contains employee details and a field which holds
status details, there maybe 5+ employees to 1 manager. Currently I use If
statements which check if the status = "To Be Sent" If this is true it sends
out the relevant forms to that manager.
My problem which i guess there are 2 of,
1) within the If statement it checks the status and the emp_name which
currently looks like this:
If Forms![MAIN]![NFORM subform]![STATUS] = "To Be Sent" And
Forms![MAIN]![NFORM subform]![EMP_NAME] = "Test Er" Then
send email
End If
what would be more helpful is if it were to auto return the name of the
employee as apposed to typing it in which is not v practical.
So if there were 8 employees with the same manager and a staus of to be
sent, instead of continuous if statements it returned each value in turn to a
variable. I guess this would be done through a loop?
Cheers
Scenario:
I have a table which contains employee details and a field which holds
status details, there maybe 5+ employees to 1 manager. Currently I use If
statements which check if the status = "To Be Sent" If this is true it sends
out the relevant forms to that manager.
My problem which i guess there are 2 of,
1) within the If statement it checks the status and the emp_name which
currently looks like this:
If Forms![MAIN]![NFORM subform]![STATUS] = "To Be Sent" And
Forms![MAIN]![NFORM subform]![EMP_NAME] = "Test Er" Then
send email
End If
what would be more helpful is if it were to auto return the name of the
employee as apposed to typing it in which is not v practical.
So if there were 8 employees with the same manager and a staus of to be
sent, instead of continuous if statements it returned each value in turn to a
variable. I guess this would be done through a loop?
Cheers