Linking Combos with Col(0) Hidden

A

Al Camp

In a continuous subform, I have 2 combo boxes on each record.
cboCID allows the user to select a CName (text), but really
stores the CID.

cboCID field bound to CID - Columns = 2 - BoundCol = 1
Col(0) Col(1)
Width 0" Width .75'
CID CName
Works fine... shows Nickname but stores CID
----------------------------------------
My next combo, cboEventID, allows the user to select one of many
events associated with the CID

cboEventID bound to EventID field - Columns = 3 - BoundCol = 1
Col(0) Col(1) Col(2)
Width .5" Width 2" Width 0"
EventID EventName CID
(criteria =cboCID)
This also works fine. Displays EventID and EventName, and Stores
EventID in cboEventID. I Refresh on cboCID AfterUpdate, and cboEvents
shows only Events associated with the CID for that record.
-----------------------------------------
Now comes the problem...
I try to hide the EventID column and allow the user to select
via EventName...
Col(0) Col(1) Col(2)
Width 0" Width 2" Width 0"
EventID EventName CID
(criteria =cboCID)

What happens is that whenever I'm on a particular record and enter a CID
and Refresh/Requery to re-synch cboEvent, all the cboEvents blank out except
for those that are associated with the CID I'm on!
How can it do that? Those EventIDs are bound and stored in the table.

I think it has some thing to do with the Bound value displayed, vs the
stored value, but can't seem to figure it out. I need to store the EventID,
but I don't want the user to see it.
Can't I synch two combos set up like this?

Thanks in advance,
Al Camp
 
A

Al Camp

Folks,
Sorry for the multiple posts. Having trouble between Outlook
Express and Agent Newsreader.
My question has been answered... please disregard this post.
Thanks,
Al Camp
 

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