Hello. I am developing a project tracking database that records the
following information:
1. Project name
2. Lead person(s)
3. Support person(s)
4. Clients
5. Contacts
The data is organized in the following way:
"tblProject" - list of projects (ie: Project A, Project B...)
"tblPeople" - list of all possible people (ie: Ann, Bill, Chris...)
"tblPeopleRole" - roles of people (ie: Lead, Support, Client, Contact)
"trelProjectPeople" - relation table describing the role of each
personnel assigned to a project
In my report, I want to succinctly show the personnel involved in each
project, ie:
'ID Project Name Lead Support Client Contact
'-----------------------------------------------------
'3 Project A Ann Dan Bill Linda
' Chris
'-----------------------------------------------------
'15 Project B Don Chris Laura
'-----------------------------------------------------
I have used four queries with filters to seperate the roles of the
personnel from "trelProjectPeople", and then another query to rejoin
them with distinct fields names of each role (ie: "Lead", "Support",
etc. are now columns). Then I created a report grouped by the project
id, and used the "Hide duplicates" format of the text boxes to suppress
repeating the name of personnel. Unfortunately, if there are multiple
people assigned to each role, I end up with the following:
'ID Project Name Lead Support Client Contact
'-----------------------------------------------------
'19 Project C David Dan Eric Angela
' Bill
' Marcie Eric
' Bill
'-----------------------------------------------------
Clearly, I only want to show the names of the clients "Eric" and "Bill"
only once:
'ID Project Name Lead Support Client Contact
'-----------------------------------------------------
'19 Project C David Dan Eric Angela
' Marcie Bill
'-----------------------------------------------------
This problem will only be exacerbated when more people are assigned to
the same role. Is there an elegent solution to this? I have previously
used a solution involving four seperate subreports to display columns
for each personnel involved in each of the roles, but I figured it was
too ungainly.
Thanks. Any help would be appreciated.
ej 2 1785
Emilio Jimonerz wrote: I have used four queries with filters to seperate the roles of the personnel from "trelProjectPeople", and then another query to rejoin them with distinct fields names of each role (ie: "Lead", "Support", etc. are now columns).
Can't you use a crosstab query instead? Or do you have Null Hell then?
:-) I think using separate queries and rejoins is a sensible approach too.
Clearly, I only want to show the names of the clients "Eric" and "Bill" only once:
'ID Project Name Lead Support Client Contact '----------------------------------------------------- '19 Project C David Dan Eric Angela ' Marcie Bill '-----------------------------------------------------
If you do query concatenation (those are search terms), you can have one
field per {lead,support,client,contact}; if you set the CanGrow property
for the control, all is done.
You certainly don't want to have multiple *rows* per project as a row
always implicates, at least, some horizontal relationship, which you
clearly *don't* want here.
--
Bas Cost Budde, Holland http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Bas Cost : Thanks for the direction. I had previously tried in vain
looking for SQL string concatenation but I guess it doesn't exist, and
my last effort by suppressing the duplicates in the report was just
trying to make sense of a messy horizontally-implicated table as you
clearly noted. I ended up using fConcatChild from http://www.mvps.org/access/modules/mdl0004.htm. However, I just spent
the last day trying to implement it in my database, but I always ended
up with an error 13 : type mismatch. I ended up copying the tables to
a new database and then the function worked. *wtf?!* Oh well. Happy
Holidays and thanks for the help.
ej This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nicola |
last post by:
Hi Everyone,
I am new to programming and would like to know how to
open an access Report from within vb 6. I am trying to write a program
to organise cross stitch threads. I have found out how...
|
by: Tom Weddell |
last post by:
Can I call an Access report from VB.Net? (I'm using access as the backend.)
Thanks in advance.
|
by: Mark C |
last post by:
All,
I have exhaustingly been looking through the newsgroups in search of a way
to systemically output an Access 97 report to a pdf file using the full
version of Adobe Acrobat. I want the user...
|
by: Mike MacSween |
last post by:
tblCourses one to many to tblEvents.
A course may have an intro workshop (a type of event), a mid course
workshop, a final exam. Or any combination. Or something different in the
future.
At...
|
by: Randyb |
last post by:
I have an Office XP Access Database with a report "Weekly TimeSheet" in it.
I am trying to print out the report from vb.net(2003) without having the
users to run access and print the report...
|
by: ellenh |
last post by:
I have read postings on the similar subject including the posting from
2003 shown below. This process works fine to display a single page
snapshot report in PowerPoint. I need to display...
|
by: rmfoley |
last post by:
All,
I would like to create a professional looking cover sheet with
information loaded from an MS Access Report. I created the cover sheet
in MS Word that includes my company logo, etc.
My...
|
by: waynetheengineer |
last post by:
Hi all,
I have a database that has two tables:
1 table shows different types of animals:
e.g. rabbits, bears, birds, etc.
a 2nd table that links to each animal type that has individual animals...
|
by: sonicfun2006 |
last post by:
I have SQL Server Database and MS Access 2003 is connected with ODBC. I have very large amount of records in various tables. The database is very dynamic as it changes every minute. I’m trying to...
|
by: accessdumbie |
last post by:
We have a small amount of information in a Word Document that I would like to print in an Access Report. We have the location of the document for each individual record stored in a hyperlink field...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |