Kamis, 07 Januari 2016

Re: [MS_AccessPros] Default typing method for combo box.

 

Kevin-


More info on KeyboardLanguage settings:


According to that, Chinese is the value 200.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Jan 7, 2016, at 10:04 PM, 'zhaoliqingoffice@163.com' zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

John-
I got it. Thanks a lot.
Best Regards,
Kevin


 
Date: 2016-01-08 04:33
Subject: Re: [MS_AccessPros] Default typing method for combo box.
 

Kevin-


If I set the language to English and then go to the Immediate Window (CTRL-G) and type this:

?Forms!MyForm!cmbTest.KeyboardLanguage

.. and press Enter, I get: 11.

So, 11 must be the numeric code for English.  If I set it back to System, the value is actually 0.  You could try using the Load event of the form to go through your controls and set that property to 11 if you want the user to be able to enter English.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Jan 7, 2016, at 8:22 PM, zhaoliqingoffice zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

John-
From where to find the language property? Would you please an example to use code to set the keyboatd? Thanks in advance.
Best Regards,
Kevin



发自我的小米手机
在 "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>,2016年1月7日 下午11:37写道:

 

Kevin-


Combo boxes have a Keyboard Language property.  On my install in English, the options are either System or English.  If I were to distribute an app built on my machine to one that was running a Chinese version of Windows, I probably would have the option in code to let controls default to "System" - which would use the Chinese keyboard - or reset it to "English" so the user could type in English.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Jan 7, 2016, at 4:18 PM, zhaoliqingoffice zhaoliqingoffice@163.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Deat All,
Is that possible to set a combox's default typing method to Chinese or English? Thanks in advance.
Best Regards,
Kevin





__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

.

__,_._,___

Tidak ada komentar:

Poskan Komentar