Dear Dano:
You said:
"I'm not sure what you mean by spreadsheet vs database though."
That was really the whole point. If you are searching for the same
information in any of 5 columns, then you have 5 columns in a table
that are repeating the same thing. This is a violation of one of the
3 basic rules of database design.
However, if the kind of query I am asking about is possible, then it
wouldn't matter if I was violating such a rule, and I wouldn't have to go
through the hassel of typing in a number at the beginning that repeats for
numerous records (and for some reason, doing a "fill down" is not something
they saw fit to include as a tool in Access as it is with Excel).
You see, your suggestion of :
was actually the first thing I tried, but I thought it would save me one
field entry (eg. the repeated 1's and 2's shown above) to do it the other
way, not to mention make it an easier printout.
Specifically what I'm doing is a list of cdrs to which I have save mp3s.
For each cdr, I would enter the artists that appear. I finally found an
exceptable solution to me by entering all artists in the same field
seperate by "/" marks as such :
janis joplin / stone roses / rodan
then I set up a query for the artists field with criteria: LIKE "*rodan*"
And when I want to search for a specific artist, I open the query with
design view and type over rodan with whatever artist I want to find. The
results will show me all cdrs on which the artist appears. Clumsy, but it
works, and I get the kind of printout I like (I haven't learned how to do a
similar printout using your method if its possible).
....
All that said, you got me thinking. How would you handle something like
this, (assume no outfielders for the purpose of this example - assuming I
can get it to appear legibly in the post):
date pitcher 1b 2b 3b catcher statistician manager
10-01 smith jones doe ray fox doe doe
10-02 jones smith cox fields fox doe green
10-03 king doe fox poe davis king fox
10-04 ray fox jones green king ray ray
You'll note that in this example, the same players don't play every day,
plus they can have both a position and be the statistician *and* manager.
I suppose you would say to set it up this way:
player date pitcher 1b 2b 3b catcher stats manager
smith 10-01 yes
jones 10-01 yes
doe 10-01 yes yes yes
smith 10-02 yes
Then if you wanted to get a list of records where Doe played, yes you could
do it. However, what if your object was not just to see a list of dates
Doe played and his position, but rather was to see a list of the teams that
played on the dates when Smith played? Using the first database above, you
could get just such a list, *if* you could use the type of query my
original post mentioned. I'm not sure how you would do it with the second
example database above.