Hi guys, long time lurker first time poster.
OK I've been using Access for quite a while now however have only really started getting into the nitty gritty of using vba and proper database structure.
My database has 2 tiers of tables linked by a one to many relationship.
Sample>Data
I have over 100 different data types and the occurrence of these is dependent of the type of survey being carried out on the sample position.
For example
Sample ID : Datatype : Value
1 : Cu : 22
1 : Au : 34
1 : Pb : 783
1 : Zn : 27
2 : Au : 78
2 : Zn : 67
I would like to query this table to display certain data type by Sample ID:
Ie.
SampID : Au : Cu: Zn
1 : 34 : 22 : 27
2 : 78 : : 67
I know how to do this using queries of queries with the Design View interface but would like to do so using VBA so that it all occurs 'behind the scenes' without crowding up my database with premade query icons.
Would love some help
George
OK I've been using Access for quite a while now however have only really started getting into the nitty gritty of using vba and proper database structure.
My database has 2 tiers of tables linked by a one to many relationship.
Sample>Data
I have over 100 different data types and the occurrence of these is dependent of the type of survey being carried out on the sample position.
For example
Sample ID : Datatype : Value
1 : Cu : 22
1 : Au : 34
1 : Pb : 783
1 : Zn : 27
2 : Au : 78
2 : Zn : 67
I would like to query this table to display certain data type by Sample ID:
Ie.
SampID : Au : Cu: Zn
1 : 34 : 22 : 27
2 : 78 : : 67
I know how to do this using queries of queries with the Design View interface but would like to do so using VBA so that it all occurs 'behind the scenes' without crowding up my database with premade query icons.
Would love some help

George