I believe you have misunderstood how the tables are designed. There is
only
one "Skill" field in the "AppliedSkills" table not four fields. Although
you
can design your tables with 4 fields for skills in one table, you've
limited
yourself to adding more skills in the future. (One of my many mistakes in
designing tables.)
First, if you are using the two tables I've described earlier: (Preferred
method)
Create your select query using both tables, joined by "ConsultantID".
Perhaps you would add from the Consultants table:
ConsultantID
ConNameLast
ConNameFirst
ConCompany
And from the AppliedSkills table:
Skill
In the criteria box enter the following between the quotes: "[Please
Enter
Skill You Require]" (You can change the wording between the brackets to
suite
your taste.) When you run the query, a dialog box will appear. Type in
name
of the skill you are looking for, i.e. 'Access Pro' (if that is one of
your
skills in your "Skill table"). A list of consultants should appear that
have
that skill applied.
Now, on to your single table with four skill fields: (Not recommended
method)
Your query design is to add all fields of your table to the query. In the
criteria box under Field1, type in " Like "*" & [Enter Skill Required Or
Leave Blank For All] & "*"". Go to Field2, drop down one line, type in "
Like
"*" & [Enter Skill Required Or Leave Blank For All] & "*"". Go to Field3,
drop down one more line, type in " Like "*" & [Enter Skill Required Or
Leave
Blank For All] & "*"". Go to Field4, drop down another line, type " Like
"*"
& [Enter Skill Required Or Leave Blank For All] & "*"".
When you run this query, a dialog box will appear, type in the 'skill',
click on OK. All skill fields and name of consultant, etc. will list if
one
of those fields contains your search criteria.
--
Jim Ory
Rhian said:
Hi Jim,
Thanks so much for getting back to me, you are a lifesaver!
I have another question though......
Now that I have created these tables how am i able to run a query which
searches for all the skills. For each consultant I have a maximum of 4
skills
and I want to search for any of the skills which could be in any field
in one
query so that it will display any people with that skills. Any of the
skills
can appear in any box....so for example.....one person may have a
planning
skill in skill field1 and another person may have a planning skill in a
different skill field2.
What would I have to input into the criteria box to ensure that it
searches
all the fields?
I would be grateful if you could supply me further with your great
Access
knowledge!!!
Many thanks!
:
Rhian,
Consider this:
Your first table should be "Consultants" and your second table should
be
"AppliedSkills". (Name them however you'd like of course. But avoid
using
spaces in names. Spaces create more problems than they are worth.)
Consultants table: (Any number of fields)
ConsultantID
ConLastName
ConFirstName
ConCompanyName
ConPhoneNumber
Con_Etc.
AppliedSkills table: (Two fields)
ConsultantID
Skill
The tables are joined using "consultantID"
You really don't want to put all their skills into one field. You
would find
it quite difficult to try and find all the consultants that are
Access pros
if they are lumped in with Electrical Engineers and other
specialties.
Make a third table consisting of just one field. Let's call it
"Skills".
This table will become the basis for a combo box or list box. Enter
all the
'skills' in this table. When someone adds a 'skill' to a consultant
in the
"AppliedSkills" table, they select from the combo/list box. The
spelling will
remain the same for each skill. As you add more skills to the table,
the
combo box will pick it up for use the next time.
I know I said "When someone adds a 'skill' to a consultant in the
"AppliedSkills" table" that doesn't mean to directly modify the
table. That
usually should only be done through forms, queries, other access
objects.
--
Jim Ory
:
I am trying to put together a consultant database which basically
stores all
the information about our consultant including, skills they have.
As you can imagine, the majority of the them have more than one
skill and
so I was wondering how I would input all skills they have, into one
cell
space. I have created a combo box so that people can select skills
already
specified but obviously i can only select one skill.
Would I do this by creating another table? If so how I would i
create the
relationship?
If someone could help i would be so grateful as this has taken me
ages to
try and figure out and i still have no clue!
As you can read im pretty clueless so I would be grateful for any
suggestions and help in the simplest terms possible.