M
Meilu
Hi All,
I have:
A Form/Table --> Main that has two fields: ID
(Autonumber) & Name
A Subform/Table --> PColor that connects to the above
through field ID and has a field Color
A table --> ColorIndex which has two fields: Name & Color
I want the Color field in PColor to have its value chosen
from a drop down list. This drop down list should pull
its values from the table ColorIndex.
This is the Data Source “description” I gave the Color
field for the subForm:
SELECT ColorIndex.Color
FROM ColorIndex
WHERE (((ColorIndex.Name) In (SELECT Main.Name FROM Main,
PColor WHERE Main.ID = PColor.ID)));
I have added a Requery Action to the “on enter” event for
the control field Color.
The above approach works … but not for the first record
in Subform PColor
Ie: For the first record in Subform Pcolor, the drop down
list for Color is empty. But after manually entering a
Color value, the 2nd record’s Color field works as
expected.
If anyone knows what’s going on… I’d really appreciate
some enlightenment!!!
-Meilu
I have:
A Form/Table --> Main that has two fields: ID
(Autonumber) & Name
A Subform/Table --> PColor that connects to the above
through field ID and has a field Color
A table --> ColorIndex which has two fields: Name & Color
I want the Color field in PColor to have its value chosen
from a drop down list. This drop down list should pull
its values from the table ColorIndex.
This is the Data Source “description” I gave the Color
field for the subForm:
SELECT ColorIndex.Color
FROM ColorIndex
WHERE (((ColorIndex.Name) In (SELECT Main.Name FROM Main,
PColor WHERE Main.ID = PColor.ID)));
I have added a Requery Action to the “on enter” event for
the control field Color.
The above approach works … but not for the first record
in Subform PColor
Ie: For the first record in Subform Pcolor, the drop down
list for Color is empty. But after manually entering a
Color value, the 2nd record’s Color field works as
expected.
If anyone knows what’s going on… I’d really appreciate
some enlightenment!!!
-Meilu