A
Angi
In a few posts back of mine about dependent cbo boxes, Marsh wrote:
Since a continuous (sub)form displays multiple records,
there is no way to keep the RowSource query in a dependent
combo box synchronized with the value in the next "higher
level" for **all** of the displayed records. The best you
can do is make the Current record work properly (same as
your previous problem). But the other rows will still have
the display problem you had before we added the Requery to
the Current event. In single view, you can't see those
records, but in continuous view, the problem is right in
front of you.
The work around is kind of tricky, involving placing a bound
text box directly on top of the text portion of the combo
box. You'll also need to munge around with the form's
RecordSource query to include the display value for the
combo box as well as add a small amount of code to manage
the focus if the user should click into the text box used to
display the correct combo text portion.
OK! I added the requery to the OnCurrent event of the form like you
said, and it works...as long as I'm on that record. I tried the work
around you mentioned, but quite honestly, I'm confused. If I put a
text box on top (I assumed bound to the value in the table) how can the
user change the cbo if they need to?
TIA!
Ang
Since a continuous (sub)form displays multiple records,
there is no way to keep the RowSource query in a dependent
combo box synchronized with the value in the next "higher
level" for **all** of the displayed records. The best you
can do is make the Current record work properly (same as
your previous problem). But the other rows will still have
the display problem you had before we added the Requery to
the Current event. In single view, you can't see those
records, but in continuous view, the problem is right in
front of you.
The work around is kind of tricky, involving placing a bound
text box directly on top of the text portion of the combo
box. You'll also need to munge around with the form's
RecordSource query to include the display value for the
combo box as well as add a small amount of code to manage
the focus if the user should click into the text box used to
display the correct combo text portion.
OK! I added the requery to the OnCurrent event of the form like you
said, and it works...as long as I'm on that record. I tried the work
around you mentioned, but quite honestly, I'm confused. If I put a
text box on top (I assumed bound to the value in the table) how can the
user change the cbo if they need to?
TIA!
Ang