Sorry for the typo. Immediate window is 'DMCategory:1'
The bound column of cboDMCategories is the column that must appear in the
where clause of the query for cboQstPtVal.
so the query for cboQstPtVal should be more like:
SELECT tblQuestions.QstWithPtVal, tblQuestions.QstID, tblQuestions.[DM
Category] FROM tblQuestions WHERE (((tblQuestions.[DM
CatID])=forms!testsubfrmDMInspDet!cboDMCategories));
Note that I have replaced
FROM tblQuestions WHERE (((tblQuestions.[DM Category])=yadda, yadda, ...
with
FROM tblQuestions WHERE (((tblQuestions.[DM CatID])=yadda, yadda, ...
This assumes that the field called DM CatID actually has a space in its
name.
Jeanette Cunningham
> Sorry for the typo. Immediate window is 'DMCategory:1'
>
[quoted text clipped - 95 lines]
>> > >> >> > Thanks very much
>> > >> >> > ridgerunner
ridgerunner - 18 Apr 2008 14:42 GMT
Thank you SO much. The drop down works now, but I am having another problem.
If I close the form, reopen and change a record, all the entries for
QstPtVal that have a category different from the one I am working on blank
out. How can I fix that?
> The bound column of cboDMCategories is the column that must appear in the
> where clause of the query for cboQstPtVal.
[quoted text clipped - 114 lines]
> >> > >> >> > Thanks very much
> >> > >> >> > ridgerunner
ridgerunner - 18 Apr 2008 19:52 GMT
I moved the Requery to the OnEnter Event and that seems to work better. If
this might create problems or I am just not doing this incorrectly, please
let me know.
> Thank you SO much. The drop down works now, but I am having another problem.
> If I close the form, reopen and change a record, all the entries for
[quoted text clipped - 119 lines]
> > >> > >> >> > Thanks very much
> > >> > >> >> > ridgerunner