thechazm
VBA, VB.net, C#, Java
- Local time
- Today, 11:42
- Joined
- Mar 7, 2011
- Messages
- 515
Ok I have ran across something interesting here and can't make sence of it.
I have a combo box that has 3 fields in it: [Shop],
I have a combo box that has 3 fields in it: [Shop],
Code:
, [Location]
When the user selects one of the entries it filters the form below it.
But when I have two [shops] with the same name but at different [Codes] and same [Locations] I get this.
First entry in combo box is:
[All], [950], [FMB]
Second is:
[All], [930], [FMB]
When I select the first one I use the On_Change event to filter the form with this:
Me.frmSetupVisualMatrixSchools.Form.Filter = "[Shop] = """ & Me.cmbSelectShop.Value & """ AND [Code] = """ & Me.cmbSelectShop.Column(1) & """ And [Location] = """ & Me.cmbSelectShop.Column(2) & """"
The value's here are correct at this point because I selected the first one.
When I select the second one it still returns
[All], [950], [FMB]
Instead of
[All], [930], [FMB]
Can anyone please shed some light on this for me,
Thanks
TheChazm