combo boxes in subforms take 2

R

Robbie

I have three combo boxes that run off each other depending
on the selection of the first combo [Forms!FormaName!
ComboBox] which works fine in a stand alone form but as
soon as it's in a subform it doesn't seem to respond.
I have tried changing the references to Me.combobox but
i'm still having problems. this is my sql. where do I have
to insert the ME.Combobox, I have tried various places
with no success.

SELECT Tbl_CUSTLDDNLD.[Stan Pack], Tbl_CUSTLDDNLD.[Chilled
Ref]
FROM Tbl_CUSTLDDNLD
GROUP BY Tbl_CUSTLDDNLD.[Stan Pack], Tbl_CUSTLDDNLD.
[Chilled Ref]
HAVING (((Tbl_CUSTLDDNLD.[Chilled Ref])=[Forms]!
[tbl_tsfr_input_2 Subform]![combo52]));

many thanks


Robbie
 
N

Nikos Yannacopoulos

Robbie,

That's because the reference for combo52 needs to account for the fact that
the subform is on a particular form, so Access knows where to look. Since
the combo lives in a subform in a form, the reference to it should be
something along the lines of:

Forms![MainFormName]![tbl_tsfr_input_2 Subform]![combo52]

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top