E
ellezeebub
Hi, Please forgive my long sad story of confusion and near despair,
but I hope you can hang in there with me and help me figure this out.
I don't mean to be long winded, I just want to get all the details in
here so I can get some meaningful replies.
In my field, natural resources, lots and lots of folks use Access.
So, innocently, I set out to learn Access by using it. Although I
work with a lot of long time professionals, when I told them I wanted
to use Access they all looked kind of horrified, as though no one in
their right mind would use Access when they can use Excel. Well, I
want to use a powerful tool that makes me more valuable as an
employee, but I am beginning to understand why these guys have so much
antipathy for the program.
I think I understand the elementary principles of primary key, fields,
columns, field types, etc., and I have a stack of Access books on my
desk. What I apparently do not understand very well is how to
organize my data in tables so that I can do meaningful select queries
or update queries or any other truly useful function.
I set up the database from scratch, using the principles suggested in
my Learn Access classes 1 and 2. I have a table for sample locations,
a table that keeps track of sample numbers and a few other
miscellaneous tables that record ambient water quality information.
Where I hit a major snag is setting up the analytical results/sample
concentrations table. Originally I put the sample concentrations in a
table specific to each type of sample, i.e. alkalinity, TSS, dissolved
metals, etc. However, I spoke with someone who has more Access
experience in my department than most, and she promptly told me that
in a well-normalized database all the results go into a single table
(like a flat file??). So, I spent the better part of a day trying to
get all my results information into a single table that varied by
analyte and other relative information, but was uniform in its
presentation of data.
Then, today I tried to do an update query so that I could use some of
the information from the sample location table to add a "type" field
to my results table. The idea is to separate the results into three
categories: saltwater, freshwater, and intermediate (waters at the
border of the freshwater outlet and the ocean). The sample location
table has the location, date of sampling, and sample bottle numbers.
Some of the sample bottles are analyzed for multiple constituents,
i.e. the ACS sample is analyzed for alkalinity, chloride and sulfate.
So, the results table is related to the sample location bottle by the
sample bottle number--in the sample location table the sample bottle
numbers are unique, but in the sample results table the sample bottle
number is repeated.
My problem before I joined all the results into one table was that if
I tried to run a query that would return all the samples run on a
particular day at a particular site, I would only get two of eight
records back because one of the analytes only had two samples per day
while all the others had eight. I tried changing the joins around,
but no luck. So, now my problem is that although I have all the
results in one table, now my queries return nothing because it wants
my location to find all the analytes (for example, the SQL looks for
all the analyte fields with AND statements).
I don't know if anyone can understand why I am having so many
problems, but I am running out of time to get this project done.
Access was supposed to make this easy (according to the teachers), but
I would have to say, "not so far."
Thanks in advance,
Ellen.
but I hope you can hang in there with me and help me figure this out.
I don't mean to be long winded, I just want to get all the details in
here so I can get some meaningful replies.
In my field, natural resources, lots and lots of folks use Access.
So, innocently, I set out to learn Access by using it. Although I
work with a lot of long time professionals, when I told them I wanted
to use Access they all looked kind of horrified, as though no one in
their right mind would use Access when they can use Excel. Well, I
want to use a powerful tool that makes me more valuable as an
employee, but I am beginning to understand why these guys have so much
antipathy for the program.
I think I understand the elementary principles of primary key, fields,
columns, field types, etc., and I have a stack of Access books on my
desk. What I apparently do not understand very well is how to
organize my data in tables so that I can do meaningful select queries
or update queries or any other truly useful function.
I set up the database from scratch, using the principles suggested in
my Learn Access classes 1 and 2. I have a table for sample locations,
a table that keeps track of sample numbers and a few other
miscellaneous tables that record ambient water quality information.
Where I hit a major snag is setting up the analytical results/sample
concentrations table. Originally I put the sample concentrations in a
table specific to each type of sample, i.e. alkalinity, TSS, dissolved
metals, etc. However, I spoke with someone who has more Access
experience in my department than most, and she promptly told me that
in a well-normalized database all the results go into a single table
(like a flat file??). So, I spent the better part of a day trying to
get all my results information into a single table that varied by
analyte and other relative information, but was uniform in its
presentation of data.
Then, today I tried to do an update query so that I could use some of
the information from the sample location table to add a "type" field
to my results table. The idea is to separate the results into three
categories: saltwater, freshwater, and intermediate (waters at the
border of the freshwater outlet and the ocean). The sample location
table has the location, date of sampling, and sample bottle numbers.
Some of the sample bottles are analyzed for multiple constituents,
i.e. the ACS sample is analyzed for alkalinity, chloride and sulfate.
So, the results table is related to the sample location bottle by the
sample bottle number--in the sample location table the sample bottle
numbers are unique, but in the sample results table the sample bottle
number is repeated.
My problem before I joined all the results into one table was that if
I tried to run a query that would return all the samples run on a
particular day at a particular site, I would only get two of eight
records back because one of the analytes only had two samples per day
while all the others had eight. I tried changing the joins around,
but no luck. So, now my problem is that although I have all the
results in one table, now my queries return nothing because it wants
my location to find all the analytes (for example, the SQL looks for
all the analyte fields with AND statements).
I don't know if anyone can understand why I am having so many
problems, but I am running out of time to get this project done.
Access was supposed to make this easy (according to the teachers), but
I would have to say, "not so far."
Thanks in advance,
Ellen.