C
crtopher
I may be trying to be too ambitious with my limited knowledge (because we
know that a little knowledge is a dangerous thing!).
I mastered Martin Greene's 'cascading list' idea, found here:
http://www.fontstuff.com/access/acctut10.htm
I had a combo that i selected a procedure category from...which changed the
rowsource of the next combo such that i could select procedures only from the
category selected in the previous combo. Now I want to up the ante!! I want
to use a list box on the main form to select procedure categories (one or
more), and transfer that selection to a subform control that selects
procedures, but the only procedures selectable are from the categories
selected in the main form list box. I need the list box and the subform
control to stay in synch between records!!
So i have the parent form called frmMain which writes to tblMain; the
subform control is called child 27; the subform is called frmCaseProcedure
which writes to tblCaseProcedure; tblCaseProcedure has a many to one
relationship with tblMain (ie each case can have more than one procedure)
the listbox on frmMain is lstCategory and it takes its rowsource as
SELECT lkupProceedureCategory.Category FROM lkupProceedureCategory ORDER BY
lkupProceedureCategory.Category;
the control on the subform is called cboProcedureID and at the moment it's
rowsource is:
SELECT qryProcedure.ProceedureID, qryProcedure.Proceedure,
qryProcedure.Category FROM qryProcedure WHERE
(((qryProcedure.Category)=Forms!frmMain!lstCategory)) ORDER BY
qryProcedure.Category, qryProcedure.Proceedure;
which works well when lstCategory multi select is off, but obviously doesn't
when its set to simple or extended. What i guess i need is the rowsource
query of the subform control to have a WHERE statement that has concatenated
the selections from the main form list box, as in Dev Ashish's site:
http://www.mvps.org/access/forms/frm0007.htm
but i don't
1. know how or where to put the where clause generated by his code
2. know how to make the selections synchronise between records
So i know this is an impossibly big question but any saint who tries to help
would be a saint indeed
Thanks
CHris R
btw...i apologise for the different spellings of procedure/proceedure...i
changed the spelling half way through!!
know that a little knowledge is a dangerous thing!).
I mastered Martin Greene's 'cascading list' idea, found here:
http://www.fontstuff.com/access/acctut10.htm
I had a combo that i selected a procedure category from...which changed the
rowsource of the next combo such that i could select procedures only from the
category selected in the previous combo. Now I want to up the ante!! I want
to use a list box on the main form to select procedure categories (one or
more), and transfer that selection to a subform control that selects
procedures, but the only procedures selectable are from the categories
selected in the main form list box. I need the list box and the subform
control to stay in synch between records!!
So i have the parent form called frmMain which writes to tblMain; the
subform control is called child 27; the subform is called frmCaseProcedure
which writes to tblCaseProcedure; tblCaseProcedure has a many to one
relationship with tblMain (ie each case can have more than one procedure)
the listbox on frmMain is lstCategory and it takes its rowsource as
SELECT lkupProceedureCategory.Category FROM lkupProceedureCategory ORDER BY
lkupProceedureCategory.Category;
the control on the subform is called cboProcedureID and at the moment it's
rowsource is:
SELECT qryProcedure.ProceedureID, qryProcedure.Proceedure,
qryProcedure.Category FROM qryProcedure WHERE
(((qryProcedure.Category)=Forms!frmMain!lstCategory)) ORDER BY
qryProcedure.Category, qryProcedure.Proceedure;
which works well when lstCategory multi select is off, but obviously doesn't
when its set to simple or extended. What i guess i need is the rowsource
query of the subform control to have a WHERE statement that has concatenated
the selections from the main form list box, as in Dev Ashish's site:
http://www.mvps.org/access/forms/frm0007.htm
but i don't
1. know how or where to put the where clause generated by his code
2. know how to make the selections synchronise between records
So i know this is an impossibly big question but any saint who tries to help
would be a saint indeed
Thanks
CHris R
btw...i apologise for the different spellings of procedure/proceedure...i
changed the spelling half way through!!