Hi John,
You really *should* assign some proper names to your fields, instead of just
"Field 1", "Field 2", etc. The name should describe the attribute, should not
include spaces, special characters, or reserved words:
Special characters that you must avoid when you work with Access databases
http://support.microsoft.com/?id=826763
Problem names and reserved words in Access
http://allenbrowne.com/AppIssueBadWord.html
If this was not imported from Excel, then you likely got such a result by
using the built-in denormalization wizard in Access (aka Create a table by
entering data). Open the table in design view and assign descriptive names to
each field. Add an Autonumber data type while you are at it.
Query Design View
Criteria: Tom Jim
While I can deduce the equivalent SQL statement from the information you
provided, it would be best if you could bring up the SQL view for your query,
copy the SQL statement, and paste it into a reply.
You still haven't shown me the result that you desire. I can only guess that
you want to see these two rows, based on the order that you typed them into
this newsgroup reply, when you specify criteria of "Tom" for Field 2 and
"Jim" for Field 4:
Susan Danny Brandi Jerry
Steve Tom James Jim
But, you haven't clearly stated that this is your desired result....
What values are shown in the ID field, and is this an Autonumber data type?
Have you read John Vinson's reply yet?
Try this sample, using the data presented in the KB article. Once you get it
working, try applying the same logic to your data:
Referring to a Field in the Previous Record or Next Record
http://support.microsoft.com/kb/210504
Note: Disregard the "ACC2000" in the title. This article applies to all
versions of Access.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________