Case statement doesn't work anymore

  • Thread starter Thread starter Snoopy
  • Start date Start date
S

Snoopy

I am using Window 98, with Access 2000.

I have 3 subforms(a, b and c) on a main form D. A public
function which using case statements to get different
value for subform b when F2 or F3 or F4 or F5 or F6 was
pressed. It used to work but when I added on new form and
doing testing, found out that the above coding doesn't
work any more. When run on debug mode, I was always given
the first statement value (i.e. F2), disregard it was
other function key which I pressed. I had tried to run
this on Window XP with Access 2000, the same thing happen.
Please help where have I gone wrong ?
 
I am using Window 98, with Access 2000.

I have 3 subforms(a, b and c) on a main form D. A public
function which using case statements to get different
value for subform b when F2 or F3 or F4 or F5 or F6 was
pressed. It used to work but when I added on new form and
doing testing, found out that the above coding doesn't
work any more. When run on debug mode, I was always given
the first statement value (i.e. F2), disregard it was
other function key which I pressed. I had tried to run
this on Window XP with Access 2000, the same thing happen.
Please help where have I gone wrong ?

Care to post the code? It's more than a bit difficult to debug code
that you can't see!
 
Back
Top