Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Keyboard Keys 1

Status
Not open for further replies.

jurgen

Programmer
Feb 8, 2001
209
BE
Hi,

Does someone know how you can assign an other character to a key? The problem we have, is that we use Dutch-Belgian Keyboards, so our decimals are 256,66 in stead of 256.66
is it possible to assign in an Access UK version other characters, a . must be a , ?

Regards


Jurgen
 
Hello Jurgen,
I'm not sure if this shouldn't be handled in the "regional settings" of your computer, but here is a way on one form you can "switch the keys":

In the form design view and in the forms properties you will have to set "Key Preview" to Yes.

In the "On Key Press" in Visual Basic you would have like this:

Private Sub Form_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case Asc(".")
KeyAscii = Asc(",")
Case Asc(",")
KeyAscii = Asc(".")
End Select
End Sub

I'm really not sure if this is what you would like, however I am sure it will give you some ideas! Best wishes,
Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top