Hello,
I am normally an embedded programmer, but I now need to write an inventory-type Access application. I was doing OK until I tried to make a Form to browse the Parts table.
A quick search of this site's archives does not present any obvious solutions.
The problem comes down to 3 tables - Parts, Types and Suppliers.
Each record in Parts includes the fields TypeID that points to one record in Type, and SuppID1, SuppID2 and SuppID3 that point to separate records in Suppliers.
Each record in Types has a Name and Description.
Each record in Suppliers has several address fields and other contact details.
I am trying to make a Form that allows the user to browse through all Parts, and for each Part display also the name and description of the associated Type, and also display the address information for each of the 3 associated Suppliers.
I can get the Type information easily enough by giving the Form the RecordSource
"SELECT [Parts].*, [Types].* FROM [Parts] INNER JOIN [Types] ON [Parts].TypeID=[Type].TypeID"
How do I edit this statement to include the Suppliers data?
Help appreciated, as I am feeling very stupid.
I am normally an embedded programmer, but I now need to write an inventory-type Access application. I was doing OK until I tried to make a Form to browse the Parts table.
A quick search of this site's archives does not present any obvious solutions.
The problem comes down to 3 tables - Parts, Types and Suppliers.
Each record in Parts includes the fields TypeID that points to one record in Type, and SuppID1, SuppID2 and SuppID3 that point to separate records in Suppliers.
Each record in Types has a Name and Description.
Each record in Suppliers has several address fields and other contact details.
I am trying to make a Form that allows the user to browse through all Parts, and for each Part display also the name and description of the associated Type, and also display the address information for each of the 3 associated Suppliers.
I can get the Type information easily enough by giving the Form the RecordSource
"SELECT [Parts].*, [Types].* FROM [Parts] INNER JOIN [Types] ON [Parts].TypeID=[Type].TypeID"
How do I edit this statement to include the Suppliers data?
Help appreciated, as I am feeling very stupid.