Thanks Dave,
Thats exactly what I was looking for. Similarly, some of my sites have more
than one sample plot for grasses, shrurbs, or trees so I was wondering what
code I could put in the new column if I wanted to find the Average % Cover of
the Grasses fields (Their field names are [% grass 2m], [% Grass 15m], [%
Grass 28 m])
WUPS.
You're "committing spreadsheet upon a database", a misdemeanor punishable by
being lectured by normalization geeks like me. <g>
Storing data - a plot size, apparently - in a fieldname IS SIMPLY WRONG
design.
If you have a one (site) to many (plots) relationship, you should model it as
a one to many relationship, with a Sites table (with information pertaining to
the site as a whole) and a Plots table (with a SiteID as a link to the sites
table, the identity of the site, the size of the site, and other information
about the specific plot).
You may need *yet another* table; if each Plot has multiple vegetation types,
and each vegetation type may appear on many plots, you should consider tables
like
VegetationTypes
VegetationType <Text, Primary Key> <e.g. "Grass", "Forbs", "Shrubs",
"Trees", "Barren ground">
Coverage
PlotID <link to table of plots>
VegetationType
Area <or Percentage>
As noted elsethread, you would be prudent to change your field name
convention; Access lets you use blanks and % and other special characters in
fieldnames, but you're really better off using Form and Report labels to
display such text, and use pure alphanumeric fieldnames.
John W. Vinson [MVP]