Keyboard layout changes from NL to EN

D

Devy

When executing in a form module (Access2003) the instruction below to get the
code of the user logged on
Set wshNetwork = CreateObject("WScript.Network")
fcWhoseLoggedOn = wshNetwork.UserName
the keyboard settings changes from NL (Belgium Dutch) to EN. In order to
continue correctly, users have to toggle all the time the keyboard setting in
the icon tray.

Does anyone know (a) HOW TO change back programmatically or (b) how to avoid
this change.
 
Top