D
David Campbell
Hello all,
I've looked through a bunch of the news group postings and
all of the Access/VB books that I have and I can't find
the solution to this problem. Here it is:
I have a table with MembersFirstName, MembersLastName,
MatesFirstName, and MatesLastName then address, city,
state, etc.
What I need to do is look at the MembersLastName and
MatesLastName and determine the following:
' This would be a single person.
If MatesLastName = NULL then
OutputName = MembersFirstName + " " + MembersLastName
Endif
' This would be a married couple.
If MembersLastName = MatesLastName then
OutputName = MembersFirstName + " & " + MatesFirstName
+ " & " + MembersLastName
Endif
' This would be a person with a mate, but not married.
If MembersLastName <> MatesLastName then
OutputName = MembersFirstName + " " + MembersLastName
Endif
This code should run when the report is ran. I already
have a query setup to get the correct records.
TIA,
David Campbell
I've looked through a bunch of the news group postings and
all of the Access/VB books that I have and I can't find
the solution to this problem. Here it is:
I have a table with MembersFirstName, MembersLastName,
MatesFirstName, and MatesLastName then address, city,
state, etc.
What I need to do is look at the MembersLastName and
MatesLastName and determine the following:
' This would be a single person.
If MatesLastName = NULL then
OutputName = MembersFirstName + " " + MembersLastName
Endif
' This would be a married couple.
If MembersLastName = MatesLastName then
OutputName = MembersFirstName + " & " + MatesFirstName
+ " & " + MembersLastName
Endif
' This would be a person with a mate, but not married.
If MembersLastName <> MatesLastName then
OutputName = MembersFirstName + " " + MembersLastName
Endif
This code should run when the report is ran. I already
have a query setup to get the correct records.
TIA,
David Campbell