Hello again.
I was wondering if I could create a Query (in an mdb file) with this definition
SELECT resk0szk.NAAM_WERKN, resk0szk.UREN_ZIEK, [FORMS]![FORMULIER1].strAfdelingen
FROM resk0szk
WHERE resk0szk.AFDELING in ( [FORMS]![FORMULIER1].strAfdelingen );
and in which strAfdelingen is filled in in the program depending on a few values selected. (it'd look for instance like:
1,2,3,4,10
It seems to me hen when I run the query with DoCmd.OpenQuery, it should give me all employees from the selected departments. This works if there's only 1 item selcted, gives no data when there's 2 items selected and gives error 2001 "Previous command has been cancelled" when selecting 3 or more items. I have no clue what to do with this. Hints, please?
Niki
I was wondering if I could create a Query (in an mdb file) with this definition
SELECT resk0szk.NAAM_WERKN, resk0szk.UREN_ZIEK, [FORMS]![FORMULIER1].strAfdelingen
FROM resk0szk
WHERE resk0szk.AFDELING in ( [FORMS]![FORMULIER1].strAfdelingen );
and in which strAfdelingen is filled in in the program depending on a few values selected. (it'd look for instance like:
1,2,3,4,10
It seems to me hen when I run the query with DoCmd.OpenQuery, it should give me all employees from the selected departments. This works if there's only 1 item selcted, gives no data when there's 2 items selected and gives error 2001 "Previous command has been cancelled" when selecting 3 or more items. I have no clue what to do with this. Hints, please?
Niki