joedewing said:
Microsoft Access can't find the macro 'KeyAscii =
Asc(Ucase(Chr(KeyAscii))).'
It sounds like you juat typed, or pasted, that single line into the "On
Key Press" property of the control. That's not what Doug intended. The
On Key Press property should be set to "[Event Procedure]" (without the
quotes), and then you need to click the "build button" (caption "...")
at the end of the property line to build an event procedure for the
control's KeyPress event. You should paste that line of code into the
event procedure, between the "Sub" and "End Sub" lines.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)