R
Rick
OK, this is a though one for me and I hope I can explain
it so everyone can understand.
I have a form pulling information from one table. In the
form I have a field labeled "Supervisor." I also have a
query that pulls from the same table and it joins several
fields into one; Suffix, First Name, MI, Last name and is
labeled "Supervisor." In the form, I have a combo box
connected to the query and after update, it updates
the "Supervisor" filed with the "Supervisor" data from the
query, Mr. John A. Smith. This works fine but here is my
dilemma.
I want to ensure the "Supervisor" and "Employee" aren't
the same person but the fields in the form for the
Employee are broken into three fields, suffix, First Name,
MI and Last name. I can't write
If Me.Supervisor = Me.Emplyee then
.....
because the values will never be the same. Is there a way
I can write VB to pull the last name of the Supervisor and
then run the if then statement against the Employees last
name?
This is way beyond my capabilities and I appreciate any
assistance.
it so everyone can understand.
I have a form pulling information from one table. In the
form I have a field labeled "Supervisor." I also have a
query that pulls from the same table and it joins several
fields into one; Suffix, First Name, MI, Last name and is
labeled "Supervisor." In the form, I have a combo box
connected to the query and after update, it updates
the "Supervisor" filed with the "Supervisor" data from the
query, Mr. John A. Smith. This works fine but here is my
dilemma.
I want to ensure the "Supervisor" and "Employee" aren't
the same person but the fields in the form for the
Employee are broken into three fields, suffix, First Name,
MI and Last name. I can't write
If Me.Supervisor = Me.Emplyee then
.....
because the values will never be the same. Is there a way
I can write VB to pull the last name of the Supervisor and
then run the if then statement against the Employees last
name?
This is way beyond my capabilities and I appreciate any
assistance.