Hi,
I'm new to MS Access and I'm trying to setup my first database. I can summarize the situation as follow. The database contains the following tables:
T_Batch: contains ALL the batches and general batch information
T_Analyze: contains all the batch that have been analyzed with analysis info
T_Release: contains all the batches that have been released with release info
These 3 tables all contain BatchNo as primary key and are related with one-to-one relationships through that key.
Although each table contain different information, obviously T_Release is a kind of subset of T_Analyze which itself is a subset of T_Batch in term of BatchNo. It means that batch n° 133 will always appear in T_Batch but will appear in T_Analyze only when it get analyzed, and in T_Release only when it get released. I prefer this setup as having everything bound in the same table because some batches will get analyzed but will never be released etc
I now want to build a query based on these 3 tables to show BatchNo, AnalysisDate and ReleaseDate side by side (so that I can perform a calculation with these dates once my problem is solved). The problem is that the query displays only batches that appear in all 3 tables (basically it will show only released batches). It doesn't display batches that are missing in one table.
What I'd like is that if the batch is not released (ie the batch is not present in T_Release), I get a blank field for ReleaseDate but all other info should appear in the query.
Does anyone know what's the problem here? Is this a table design issue?
Many thanks
I'm new to MS Access and I'm trying to setup my first database. I can summarize the situation as follow. The database contains the following tables:
T_Batch: contains ALL the batches and general batch information
T_Analyze: contains all the batch that have been analyzed with analysis info
T_Release: contains all the batches that have been released with release info
These 3 tables all contain BatchNo as primary key and are related with one-to-one relationships through that key.
Although each table contain different information, obviously T_Release is a kind of subset of T_Analyze which itself is a subset of T_Batch in term of BatchNo. It means that batch n° 133 will always appear in T_Batch but will appear in T_Analyze only when it get analyzed, and in T_Release only when it get released. I prefer this setup as having everything bound in the same table because some batches will get analyzed but will never be released etc
I now want to build a query based on these 3 tables to show BatchNo, AnalysisDate and ReleaseDate side by side (so that I can perform a calculation with these dates once my problem is solved). The problem is that the query displays only batches that appear in all 3 tables (basically it will show only released batches). It doesn't display batches that are missing in one table.
What I'd like is that if the batch is not released (ie the batch is not present in T_Release), I get a blank field for ReleaseDate but all other info should appear in the query.
Does anyone know what's the problem here? Is this a table design issue?
Many thanks