keydown event in datasheet view

J

JString

I want to be able to capture keystrokes on a form in datasheet view, but
anything I include in the keydown event isn't executed. My guess is that
Access won't trigger this event in datasheet view for some reason. Is there
any workaround to this?
 
S

Stuart McCall

JString said:
I want to be able to capture keystrokes on a form in datasheet view, but
anything I include in the keydown event isn't executed. My guess is that
Access won't trigger this event in datasheet view for some reason. Is
there
any workaround to this?

Try setting the form's KeyPreview property to Yes/True. (guessing)
 
J

JString

Thanks all for the help. Turns out that I must have missed a save, and the
subform's source reverted back to its original query... So that's why the
code I was adding to the new form wasn't executing.
 

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