Results 1 to 4 of 4
  1. #1
    Liam87 is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    10

    Filtering table inside a form

    I have a table which I need to input data on tree planting across a number of sites for an environment project. I have an ID, site_num, date_plant, species, quantity fields. There are a number of plant species and they may change each year depending on local supply/condition. Each site may have up to 10+ records for a particular date with different species/quantities in each record.



    I was hoping to make a form that has a table below(or text box) that displays the records for the date and site so the user can see and check they have updated all the correct information for that site before moving on. I think I would need an unbound text box that defines the values for site and date that does not clear when you hit enter to finish inputing one record(and then a button for the user to clear the site and date).

    I'm a bit new to this so any help would be appreciated

    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,722
    I would not suggest starting with a form. From the brief description, I see these "entities" (things) you are dealing with.

    Sites

    Trees(this may be species?)

    and Plantings

    I would suggest these 3 tables

    Tree---->Planting<--------Site

    where Planting is a Junction Table.

    You may wish to review Normalization and Junction Table
    You can find more info at http://www.rogersaccesslibrary.com/T...lationship.zip

    Good luck with your project.

  3. #3
    Liam87 is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2012
    Posts
    10
    Thanks for your timely response,

    So would it be like:
    Trees>Tree_ID, Species
    Plantings>Site_ID, Tree_ID
    Site> Sited_ID, Date_Planting, Quantity_Planted

    But what I have currently is

    Reveg> Site_ID, Date_Planting, Tree_Species, Quantity_Planted
    LUT_Trees>ID, Tree_Sp

  4. #4
    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,722
    No.

    Tree(TreeId, Species,... anything else specific to a tree {height,age???} )
    Site(SiteId, SiteName..anything else specific to a Site..{Lat/Long}????)

    Planting(PlantingId, SiteId, TreeId, DatePlanted, QuantityPlanted)

    PKs are underlined.
    In Planting, SiteId and TreeId are FK to the respective tables.
    Also in Planting, SiteId,TreeId, and DatePlanted makeup a compound unique index (This is to prevent duplicates in the Planting Table)

    With this table structure , you can add new sites, and/or new Tree/species and carry on.
    Last edited by orange; 10-31-2012 at 09:37 PM. Reason: adjusted text

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

Similar Threads

  1. Replies: 1
    Last Post: 09-05-2012, 07:04 AM
  2. Replies: 14
    Last Post: 02-25-2012, 02:59 PM
  3. Replies: 3
    Last Post: 07-10-2011, 02:35 AM
  4. Filtering and using First() inside a query
    By Gilligan in forum Queries
    Replies: 17
    Last Post: 03-10-2011, 05:52 PM
  5. Can access have a table view inside a form
    By mossman in forum Access
    Replies: 5
    Last Post: 01-17-2010, 12:19 PM

Tags for this Thread

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