Results 1 to 4 of 4
  1. #1
    deergirl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5

    Simple query

    Hi,

    Disclaimer - new to access

    I would like to create a table from 2 existing tables.
    1. contains a deer ID number and the sex of the animal
    2. contains the deer ID number and encounter date (10 rows of same ID with different dates)

    I would like to know the sex of deer for every encounter entry.

    How can a make a new table to include sex of animal, ID, and encounter date?

    Thanks!

  2. #2
    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,849
    You would have 2 tables

    tblDeer with info about the deer --
    DeerID -- unique identifier of a deer (Primary Key)
    ,name
    , DateOfBirth
    , sex....

    and
    tblEncounters with
    EncounterID <---Primary Key of this table
    ,DateOfEncounter
    ,LocationOfEncounter
    ,DeerId <----foreign key gives your the ability to join the tables and select related information
    , other encounter specific info


    Typical data in table
    TblDeer

    1,Bambi, 23/6/2013,F
    2,Bob,11,10,2012,M

    tblEncounters
    1,21/10/2013, GenoaCity,1
    2,22/10/2013,KMart,1
    3,30/10/2013,WalMart,1
    4,14/03/2013,Kmart,2


    Research Normalization.

  3. #3
    deergirl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5
    I worded the question poorly, it is edited now.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Don't make table. Make query. Use query builder. Basic Access functionality. Access Help has guidelines on using the query builder.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 13
    Last Post: 01-21-2014, 07:15 PM
  2. Simple query help
    By Subhunter in forum Queries
    Replies: 9
    Last Post: 11-19-2010, 03:32 PM
  3. need help with this simple query
    By dada in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 07:08 AM
  4. simple query
    By taylorosso in forum Queries
    Replies: 1
    Last Post: 10-06-2009, 04:26 AM
  5. Help with a simple query
    By JohnnyO in forum Queries
    Replies: 1
    Last Post: 02-11-2009, 09:43 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