The first piece of code below works find and is triggered
from a checkbox.
The second piece of code differs in that in order to find
the login name it has to look in two Fields from the
table *1* FirstName and *2* LastName.
I am stumped on how to make the code do this. My example,
2nd piece of code is wrong and I have not been able to
correct this. Does anyone have any suggestions. I need
to lookup both FirstName and Lastname in order to come up
with a LoginName. Thanks for any help.
from a checkbox.
The second piece of code differs in that in order to find
the login name it has to look in two Fields from the
table *1* FirstName and *2* LastName.
I am stumped on how to make the code do this. My example,
2nd piece of code is wrong and I have not been able to
correct this. Does anyone have any suggestions. I need
to lookup both FirstName and Lastname in order to come up
with a LoginName. Thanks for any help.
Code:
DLookup("LoginName", "ChangeFormUserNameTbl", "ActualName='" & Me.FirstName & "'" & Me.LastName & "'") & "@nmhg.com"
Code:
DLookup("LoginName", "EmailNameTbl", "FirstName='" , "LastName='", & Me.FirstName & "'" & Me.LastName & "'") & "@nmhg.com"