G
Guest
Hi all,
I have a first name and last name field that I need to manipulate to get the
look needed for a report. There are three parts to what I want to do, and I
need help determining if this should be done in three separate queries or
less? Example below
For instance:
Jerry Smith
Cameron Handle
Carol Frick
Peter Liu
Jessica Silles
Every time Jessica Silles is an attendee at an event, I need her to show up
as JDS, and Peter Liu to show up as PTL, with the other people showing up as
their first initial and last name. On top of that, for every time Jessica or
Peter are on the attendee listing, I need JDS to show up first, PTL to show
second and then the rest of the names following in any order. First I
created a query to change all of the names to first initial and last name.
Then I opened a second query and used the following to get the format I need
for JDS and PTL: Names: (IIf([Name]='J. Silles,"JDS")) & (IIf([Name]='P.
Liu',"PTL"))
When I run the query it does convert to JDS and PTL, but then no other names
show up, I need to specify to leave all the other names the same, but don’t
know how. AND, I need the order of JDS listed first for any event she
attends and PTL listed second (or in the case JDS does not attend, PTL would
then default to being first) followed by the rest.
Any help is greatly appreciated!!
-Valerie
I have a first name and last name field that I need to manipulate to get the
look needed for a report. There are three parts to what I want to do, and I
need help determining if this should be done in three separate queries or
less? Example below
For instance:
Jerry Smith
Cameron Handle
Carol Frick
Peter Liu
Jessica Silles
Every time Jessica Silles is an attendee at an event, I need her to show up
as JDS, and Peter Liu to show up as PTL, with the other people showing up as
their first initial and last name. On top of that, for every time Jessica or
Peter are on the attendee listing, I need JDS to show up first, PTL to show
second and then the rest of the names following in any order. First I
created a query to change all of the names to first initial and last name.
Then I opened a second query and used the following to get the format I need
for JDS and PTL: Names: (IIf([Name]='J. Silles,"JDS")) & (IIf([Name]='P.
Liu',"PTL"))
When I run the query it does convert to JDS and PTL, but then no other names
show up, I need to specify to leave all the other names the same, but don’t
know how. AND, I need the order of JDS listed first for any event she
attends and PTL listed second (or in the case JDS does not attend, PTL would
then default to being first) followed by the rest.
Any help is greatly appreciated!!
-Valerie