T
TonyT
I have a small database for keeping track of Images with the basic structure;
tblImg
ImgID
ImgName
ImgPath
ImgSettingNum
ImgLocationNum
etc etc
tblSetting
SettingID <-> ImgSettingNum
SettingDesc
tblLocation
LocationID <-> ImgLocationNum
LocationDesc
tblSubject
SubjectID
SubjectDesc
tblLnkSubj
LnkSubjectNum <-> SubjectID
LnkImgNum <-> ImgID
I can't seem to create a query that will give me a recordset containing
(locationDescA OR locationDescB) AND (SettingDescA OR SettingDescB OR
SettingDescC) <= this much is no problem AND (SubjectDesc AND SubjectDesc
AND.....) where SubjectDesc is drawn from a multiselect listbox giving an
unknown length of selections.
I have been trying with a subquery, which works fine for SubjectDesc OR
SubjectDesc....., but can't get my head round SubjectDesc AND
SubjectDesc..... from the link/junction table, seems I need a way to have an
array in a field.
Any pointers?
tblImg
ImgID
ImgName
ImgPath
ImgSettingNum
ImgLocationNum
etc etc
tblSetting
SettingID <-> ImgSettingNum
SettingDesc
tblLocation
LocationID <-> ImgLocationNum
LocationDesc
tblSubject
SubjectID
SubjectDesc
tblLnkSubj
LnkSubjectNum <-> SubjectID
LnkImgNum <-> ImgID
I can't seem to create a query that will give me a recordset containing
(locationDescA OR locationDescB) AND (SettingDescA OR SettingDescB OR
SettingDescC) <= this much is no problem AND (SubjectDesc AND SubjectDesc
AND.....) where SubjectDesc is drawn from a multiselect listbox giving an
unknown length of selections.
I have been trying with a subquery, which works fine for SubjectDesc OR
SubjectDesc....., but can't get my head round SubjectDesc AND
SubjectDesc..... from the link/junction table, seems I need a way to have an
array in a field.
Any pointers?