Case statement doesn't work anymore

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 ?
 
J

John Vinson

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top