I want to do something with a control if another control changes. The other control is a combo box. When it changes I want to store the changed value in another control. There is a reason!!
So I bascially have
Me.atextcontrol = Me.acombocontrol.Column(1)
The combo box displays a list of records from another table
I've noticed some weird things by putting a break on the above line in the code.
If I select another one of the records in the combo box then Me.acombocontrol.Column(1) contains exactly what it should do.
If I happen to hit the space or delete key when highlighting the combo box record I would expect NULL or spaces in Me.acombocontrol.Column(1). I'm getting the old value.
If I happen to say add a character to the existing text (i.e I have say Fred and I manage to stick a 2 on the end giving Fred2) then I would expect to see that (Fred2) in Me.acombocontrol.Column(1). I'm getting NULL.
Any ideas why I'm seeing what I'm seeing. I want to cater for it in the code and display errors where appropriate and at the moment I'm not picking up the right erros.
So I bascially have
Me.atextcontrol = Me.acombocontrol.Column(1)
The combo box displays a list of records from another table
I've noticed some weird things by putting a break on the above line in the code.
If I select another one of the records in the combo box then Me.acombocontrol.Column(1) contains exactly what it should do.
If I happen to hit the space or delete key when highlighting the combo box record I would expect NULL or spaces in Me.acombocontrol.Column(1). I'm getting the old value.
If I happen to say add a character to the existing text (i.e I have say Fred and I manage to stick a 2 on the end giving Fred2) then I would expect to see that (Fred2) in Me.acombocontrol.Column(1). I'm getting NULL.
Any ideas why I'm seeing what I'm seeing. I want to cater for it in the code and display errors where appropriate and at the moment I'm not picking up the right erros.