Very Strange: A Change event doesn't capture selected value of the combobox!

Hi
This is very strange behaviour I am noticing in vb6
I have a combobox on my form which I created using VB APP
The combobox is called Line.  When the user selects the value, on this combo box,
using mouse key, I am able to see the value in the
change event.  Howver, if user is going from field to field using the tab key, and when he/she arrives
at the Line field he/she will press a letter say 'g' and corresponding value will be selected.  The user than tabs off
to the next field.  As soon as this is done, the Line_Change event is triggered.  When I check the value it's null.
even though they have selected something!  Any idea why this behaviour?  What is the way around it?

Private Sub Line_Change()
If Me.Line.Value = 3 Or Me.Line.Value = 4 Then
     do something....
 
Else
    do something else..
end if
End Sub
ALad2005Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hit_MNCommented:

Just use the Line_Click event...
Marco
EDDYKTCommented:
Does combox has value attribute? or shoud be text?
ALad2005Author Commented:
It's ok I figured it out.
I had to my code in the Line_AfterUpdate() event.
That did it.
Thank you guys anyways.
Anil
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.