Hi,
I have a sub-form on a form that I use 3 combo boxes to filter down choices for a certain field. I have the first combo box that shows 'Type of Source', the next combo box is 'Advertiser Name' and the final box shows 'Campaign '. So the user picks a Type of source, and then the advertiser box only shows advertisers that are the same type of source picked, then the user picks a campaign that has been assigned to that advertiser.
I am having problems with updating the combo boxes. On form current I have all three combo boxes re queried
Code:
ComboSource.RequeryComboAdvertiser.Requery
ComboCampaign.Requery
On form load I have the following
Code:
ComboSource = NullComboSource.Requery
ComboSource = ComboSource.ItemsSelected(0)
Call ComboAdvertiser_AfterUpdate
On the comboSource box I have the following event after update
Code:
ComboAdvertiser = NullComboAdvertiser.Requery
ComboAdvertiser = ComboAdvertiser.ItemData(0)
ComboCampaign = Null
ComboCampaign.Requery
ComboCampaign = ComboCampaign.ItemData(0)
On the comboadvertiser box, I have the following event after update
Code:
ComboCampagin.Requery
ComboCampaign = ComboCampaign.ItemData(0)
When I create a new entry and fill in all the data, the criteria works ok, but when I navigate to an old record, the combosource and comboadvertiser boxes stay the same and dont change, and when I go back to the record I created only the comboCampaign box shows the correct information, the other two are blank. Can someone help me please?
Thanks