A
Afrosheen via AccessMonster.com
Thanks for reading this.
I'm using a Dlookup routine to find the email address where the yes/no field
= true and that part works.
160 Email = Nz(DLookup("EMail", "tblSupervisor", "TapCo"))
170 txtTapCo = Me.Supervisor
180 strBCC = strBCC & "; " & Email
MsgBox strBCC
Once the field is found though the txtTapCo=Me.Supervisor is supposed to
return with the value of the person found in the dlookup, I thought. It
doesn't. What happens is that the txtTapCo will come up with some other name
entirely.
For ex: The dlookup will find and show me the email address of the person
where the TapCo = true. I need to also get the name of the person.
What am I doing wrong?
I'm using a Dlookup routine to find the email address where the yes/no field
= true and that part works.
160 Email = Nz(DLookup("EMail", "tblSupervisor", "TapCo"))
170 txtTapCo = Me.Supervisor
180 strBCC = strBCC & "; " & Email
MsgBox strBCC
Once the field is found though the txtTapCo=Me.Supervisor is supposed to
return with the value of the person found in the dlookup, I thought. It
doesn't. What happens is that the txtTapCo will come up with some other name
entirely.
For ex: The dlookup will find and show me the email address of the person
where the TapCo = true. I need to also get the name of the person.
What am I doing wrong?