Hi Pieter,
Thanks for your help. I'm still working on the problem. I've been looking at
the way my tables are joined in the query.
I'm not sure how I can show you a few sample records. Let's see if I can
simply explain the data base to you.
We're sampling pools within a river. We visit several sites and sample
several pools at each site. Hence, pools are nested within sites.
My first table describes site conditions. The primary key is 'sample id',
which is a unique descriptor for each site. The input mask for this is
The second table describes pool conditions. We sample three or four pools
within a site. The primary key for this table is actually two columns:
'sample id' and 'pool id'. Pool id is a unique number (recorded as 'text')
for each pool. The same pool may be sampled on a number of occasions, so it's
possible to have the same pool id with different sample ids.
The third table is for subsamples taken from within pools. Sometimes we take
one subsample and sometimes we take three (depending on the project). Again,
these are numbers recorded as text. If only one subsample is taken, I record
it as '1'. If three subsamples are taken, they are recorded as '1', '2' and
'3'.
Make sense?
I think the problem is with the sample id. I thought I was entering it in
the same way in every table, every time. But things have gone awry somewhere.
I notice in my form that sometimes my sample id looks like this: ASB-07-001
and sometimes like this: ASB07001, even within the same form (!!). [Note that
the input mask includes the dashes.]
If my sample id is being recorded in different ways in each of the tables,
then I guess the join won't be recognising that they are the same thing.
So, why do they look different?! Surely, if they're all being entered in the
same column they should be the same?! Aargh!
thanks again!