473,418 Members | 2,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

don't want info to show

I have a report based on query..which is a team list with names and their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need some
advice.

I want the team list to show the names of the individuals and their role on
team if they are coach or assistant but not if they are player but since
they are based on the same field (role) how do I set it so I can get it to
show only what I want

thanks.

Anne M
Nov 13 '05 #1
7 1773
Anne M wrote:
I have a report based on query..which is a team list with names and their role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need some advice.

I want the team list to show the names of the individuals and their role on team if they are coach or assistant but not if they are player but since they are based on the same field (role) how do I set it so I can get it to show only what I want

thanks.

Anne M


In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune

Nov 13 '05 #2
thanks but I guess I should explain a little more...I don't want to exclude
the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
I have a report based on query..which is a team list with names and

their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need

some
advice.

I want the team list to show the names of the individuals and their

role on
team if they are coach or assistant but not if they are player but

since
they are based on the same field (role) how do I set it so I can get

it to
show only what I want

thanks.

Anne M


In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune

Nov 13 '05 #3
Anne M wrote:
thanks but I guess I should explain a little more...I don't want to exclude the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
I have a report based on query..which is a team list with names
and their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need

some
advice.

I want the team list to show the names of the individuals and
their role on
team if they are coach or assistant but not if they are player but

since
they are based on the same field (role) how do I set it so I can
get it to
show only what I want

thanks.

Anne M


In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune


Assuming tblRoster has a 'Team' field, try

SELECT tblRoster.RosterName, IIf([Role]='Player',Null,[Role]) AS
RosterRole FROM tblRoster WHERE tblRoster.[Team] = 'Ravens';

For your report you can do sorting and grouping by Team (show Group
Header) with:

SELECT tblRoster.RosterName, IIf([Role]='Player',Null,[Role]) AS
RosterRole, Team FROM tblRoster

as the RecordSource for the report. Drag Team from the Field List into
the Group Header.

James A. Fortune

Nov 13 '05 #4
Two methods

IIf(Role = 'Player',"",Role)
Note that it is IIf not If. This should show a blank space if the condition
is true, otherwise it should show the role.

The other method is to have an indicator in the table for True or False,
depending whether you want to show the role (You may have other roles that
you don't want to display and that will give additional functionality). The
IIf statement then becomes something like
IIf(PrintInd = True, Role, "")

HTH

Phil
"Anne M" <am******@ns.sympatico.ca> wrote in message
news:dA********************@ursa-nb00s0.nbnet.nb.ca...
thanks but I guess I should explain a little more...I don't want to
exclude the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
I have a report based on query..which is a team list with names and

their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need

some
advice.

I want the team list to show the names of the individuals and their

role on
team if they are coach or assistant but not if they are player but

since
they are based on the same field (role) how do I set it so I can get

it to
show only what I want

thanks.

Anne M


In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune


Nov 13 '05 #5
.... and Phil's number 2 is better because it's easily extensible.

--
Terry Kreft
MVP Microsoft Access
"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:42***********************@ptn-nntp-reader02.plus.net...
Two methods

IIf(Role = 'Player',"",Role)
Note that it is IIf not If. This should show a blank space if the condition is true, otherwise it should show the role.

The other method is to have an indicator in the table for True or False,
depending whether you want to show the role (You may have other roles that
you don't want to display and that will give additional functionality). The IIf statement then becomes something like
IIf(PrintInd = True, Role, "")

HTH

Phil
"Anne M" <am******@ns.sympatico.ca> wrote in message
news:dA********************@ursa-nb00s0.nbnet.nb.ca...
thanks but I guess I should explain a little more...I don't want to
exclude the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
I have a report based on query..which is a team list with names and
their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need
some
advice.

I want the team list to show the names of the individuals and their
role on
team if they are coach or assistant but not if they are player but
since
they are based on the same field (role) how do I set it so I can get
it to
show only what I want

thanks.

Anne M

In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune



Nov 13 '05 #6
More help needed on Phils method 2
I created a print indicator field (true or false) in my participation table
where I link my member, role and team tables. I created update query to make
coach and assistant show as true. Worked fine. I added the printind field to
my query. Everything works the way I want it but now where do I put
IIf(PrintInd = True, Role, "") to get rid of the player role. I tried to use
it in my query and or report but can't seem to do it right...not sure of
where to use the expression ...

thanks again...

"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:42***********************@ptn-nntp-reader02.plus.net...
Two methods

IIf(Role = 'Player',"",Role)
Note that it is IIf not If. This should show a blank space if the
condition is true, otherwise it should show the role.

The other method is to have an indicator in the table for True or False,
depending whether you want to show the role (You may have other roles that
you don't want to display and that will give additional functionality).
The IIf statement then becomes something like
IIf(PrintInd = True, Role, "")

HTH

Phil
"Anne M" <am******@ns.sympatico.ca> wrote in message
news:dA********************@ursa-nb00s0.nbnet.nb.ca...
thanks but I guess I should explain a little more...I don't want to
exclude the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
I have a report based on query..which is a team list with names and
their
role on team ie coach, assistant and player.

Report is almost what I want and my knowledge is limited so I need
some
advice.

I want the team list to show the names of the individuals and their
role on
team if they are coach or assistant but not if they are player but
since
they are based on the same field (role) how do I set it so I can get
it to
show only what I want

thanks.

Anne M

In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune



Nov 13 '05 #7
Hi Anne

In the query that is the source of your report, type the expression
IIf(PrintInd = True, Role, "") in a blank column on the top line. It should
change to Expr1:IIf(PrintInd = True, Role, ""). Rename "Expr1" to something
more meaningful like "PrintRole". Run the query to make sure it works. Then
in your report you want to use this new PrintRole field rather than the Role
Field

Phil
"Anne M" <am******@ns.sympatico.ca> wrote in message
news:mi********************@ursa-nb00s0.nbnet.nb.ca...
More help needed on Phils method 2
I created a print indicator field (true or false) in my participation
table where I link my member, role and team tables. I created update query
to make coach and assistant show as true. Worked fine. I added the
printind field to my query. Everything works the way I want it but now
where do I put IIf(PrintInd = True, Role, "") to get rid of the player
role. I tried to use it in my query and or report but can't seem to do it
right...not sure of where to use the expression ...

thanks again...

"Phil Stanton" <ph******@xxstantonfamily.co.uk> wrote in message
news:42***********************@ptn-nntp-reader02.plus.net...
Two methods

IIf(Role = 'Player',"",Role)
Note that it is IIf not If. This should show a blank space if the
condition is true, otherwise it should show the role.

The other method is to have an indicator in the table for True or False,
depending whether you want to show the role (You may have other roles
that you don't want to display and that will give additional
functionality). The IIf statement then becomes something like
IIf(PrintInd = True, Role, "")

HTH

Phil
"Anne M" <am******@ns.sympatico.ca> wrote in message
news:dA********************@ursa-nb00s0.nbnet.nb.ca...
thanks but I guess I should explain a little more...I don't want to
exclude the player names just their role..

Ravens
John Smith coach
Bill Smith assistant
Jill Smith
Ann Brown
etc for all the players

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Anne M wrote:
> I have a report based on query..which is a team list with names and
their
> role on team ie coach, assistant and player.
>
> Report is almost what I want and my knowledge is limited so I need
some
> advice.
>
> I want the team list to show the names of the individuals and their
role on
> team if they are coach or assistant but not if they are player but
since
> they are based on the same field (role) how do I set it so I can get
it to
> show only what I want
>
> thanks.
>
> Anne M

In the Query Design grid under role put <> "player" in the criteria
box. The resulting query SQL view should look similar to:

SELECT RosterName, role FROM tblRoster WHERE role <> "player";

Don't use Name as the name of a field since it can cause Access to
become confused.

James A. Fortune



Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: komone | last post by:
"Now is the time for all good web developers to use stylesheets". Hmm OK, so I start this commercial site design with the express intent of using CSS entirely. (Something I haven't attempted in...
2
by: Martin | last post by:
Hi, I have implemeted a recursive function that basically iterate throught the entire file system and prints out the entire path of each directory that it come across. The only problem is the...
1
by: Mr. B | last post by:
VB.net 2003 c/w Framework 1.1 and MS Access db We have a commercial program that does our Acounting and Time Sheets (Timberline). At least once a day our Accounting department runs a Script...
2
by: Pascal | last post by:
bonjour/hello I have an application with several forms : form1 is loaded at first. Man makes some staff (filling text box, clicking radiobutton) in this window and then click nextbutton and so on...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
6
by: gerbski | last post by:
Hi all, I am relatively new to ADO, but up to now I got things working the way I wanted. But now I've run into somethng really annoying. I am working in MS Access. I am using an Access...
4
by: John | last post by:
I have several buttons that show their button info when you move over them with your mouse. I addes 3 new buttons and added button info but for them the info doesn't show up. The settings seems to...
12
by: MrHelpMe | last post by:
Hello again all, I've finished my whole application and now I don't like the whole session variables that I am using. I have a form, user fills in info clicks submit and using CDOSYSMail an...
1
by: Congcong | last post by:
When I use gprof to profile a program, it seems never show me the profile info on c lib routines such as malloc. But sometimes, profile info on such c lib routines are also important. I use 'gcc -g...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.