Results 1 to 6 of 6
  1. #1
    gdemets is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    2

    Simple stuff

    Hi all,
    I have a simple question:


    I have two table: Authors from campus 1 and Authors from campus 2
    I have a third one called papers. I want it to search the autors names in both (campus 1 and 2) in a single combination form, because I have several authors for a single paper, belonging frequently to different campi.
    Anyone could help me?
    Regards,
    Greg

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    select Author from [campus 1]...
    union all
    select author from [campus 2]...

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Why do you have two tables for authors? What are you going to do when you have a third campus?

    It sounds like you need to first normalize your structure.

    Table Authors
    ----------
    A_ID (Autonumber) PK
    A_LastName (Text)
    A_FirstName (Text)
    A_Campus (Long) FK to table Campus


    Table Campus
    ----------
    C_ID (Autonumber) PK
    C_CampusName (Text)


    As far as what you have now, you could use a form with 2 sub forms. Or a union query of the two tables.

  4. #4
    gdemets is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    2
    Thanks,
    I need two tables or more because some authors are researchers, others are students, others are external collaborators and so on. The info about them are different in kind...I need different stuff from these different kinds of authors, this is why I have created different tables. In the field authors however, all the names should figure in, independently of its kind. I need personnal info for other tables and querries.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You may want to do a little research on Normalization.
    Here is a tutorial that may be useful.
    http://www.databaseanswers.org/approach2db_design.htm

  6. #6
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I don't think you will be able do what you want to do even using a union query. If you had two Jon Smiths, in two different tables, how would you know which PK to use???

    The Authors info should be in one table, with PK-FK links to other tables with the additional info you want to keep on the authors. (like a separate table for Phone numbers, linked to the Authors table.)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 10-21-2010, 08:24 AM
  2. Replies: 2
    Last Post: 05-27-2009, 08:47 PM
  3. Access Simple Stuff, help
    By clwclw in forum Access
    Replies: 1
    Last Post: 05-02-2009, 03:10 PM
  4. I need help with weird stuff happening on a DB
    By makotoshishio in forum Access
    Replies: 9
    Last Post: 04-02-2009, 12:20 PM
  5. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums