Probably fairly easy but have been searching online with no luck
For every type of equipment there is many questions that I would like to display when selected
I have created a combo box with multiple values from 2 different tables with the following values
tblQuestions.EquipTypeID, tblEquipmentType.EquipTypeName, tblQuestions.QuestionID
however I want to sort the values so that the combo only displays one selection for each equipment type
The following SQL statement gives a different instance for each question
SELECT tblQuestions.EquipTypeID, tblEquipmentType.EquipTypeName, tblQuestions.QuestionID
FROM tblQuestions INNER JOIN tblEquipmentType ON tblQuestions.EquipTypeID = tblEquipmentType.EquipTypeID;
AS Does this one as all rows are unique it is the equipment type that is the same
SELECT DISTINCT tblQuestions.EquipTypeID, tblEquipmentType.EquipTypeName, tblQuestions.QuestionID
FROM tblQuestions INNER JOIN tblEquipmentType ON tblQuestions.EquipTypeID = tblEquipmentType.EquipTypeID;
I think I may be able to use GROUP BY but nothing that I implement seems to work and have searched far and wide
GROUP BY (tblQuestions.EquipTypeID, tblEquipmentType.EquipTypeName, tblQuestions.QuestionID)
Thanks