Dlookups on two unrelated tables?

stlryan82

New member
Local time
Today, 10:12
Joined
May 31, 2011
Messages
8
Hello everyone. I wasn't sure what topic I should post this question under, so I'm posting it here in the General subforum. I'm not even sure if my title accurately conveys my issue (If you can think of a better one, let me know and I'll change it!).

I have two tables that are not related, "Faculty" and "Publications". For simplicity's sake, I'll just list the applicable fields in each.

The 'Faculty' table has two fields: FullName and PubName.

The 'Publications' table has two fields: Authors and Title.

Each publication in the table has several authors (some of which are in my 'Faculty' table and some not). The Authors field list all of the authors by their abbreviated Pub Name. I was in an extreme time crunch when I created this database, so I had no other choice but to list all authors in one field. I realize that this is probably terrible designing on my part.

My initial task was to identify if any of the people listed on my 'Faculty' table had any publications listed in the 'Publications' table. I was able to accomplish that by setting up a filter query and using the DLookUp function. Basically, I would choose a FullName from a combo box, and the queries use the associated PubName and looks it up in the Author field of the 'Publications' table. No problem.

My second task however, has left me scratching my head, as I don't know how to accomplish it. Or if it's even possible, given my current design. What I need now is to identify any publication listed in the 'Publications' table that has two or more authors also from my 'Faculty' table.

Any ideas?? I'm quite new to the Access databases, so I apologize in advance if something is not clear. Let me know, and I'll try my best to clarify.

Thanks!
Ryan
 
One idea to solve all issues: properly structure your database.

From what you've stated you need at least 3 tables: Publications, Authors, and AuthorsPublications which would essentially join Publications and Authors since there is a many to many relationship between those two tables. In your Authors table you will have all authors data as well as a field that tells you if that authors is faculty.

Once that is done, the two queries you need are simple to pull.
 

Users who are viewing this thread

Back
Top Bottom