473,811 Members | 3,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Toolbarnames, localization problem

Hi all

I am using Dutch versions of MSAccess and I use code like:
DoCmd.ShowToolb ar "Menubalk", acToolbarNo
DoCmd.ShowToolb ar "Formulierweerg ave", acToolbarNo
Last week when a sysadmin loaded the app on his laptop, the application errored on these lines.
==He was using an English/American version of Access.

Adapting the code to the following works (also in my Dutch version):
DoCmd.ShowToolb ar "Menu bar", acToolbarNo
DoCmd.ShowToolb ar "Form view", acToolbarNo

I know that to avoid this problem it is best to *not* use a localized version but...
Is there a way to use constants instead of the 'localised' name ? If so, how to find the constants ??
Another way to avoid this problem ??

Arno R
Feb 23 '08 #1
1 2267
"Arno R" <ar************ ****@planet.nlw rote in
news:47******** *************** @text.nova.plan et.nl:
Hi all

I am using Dutch versions of MSAccess and I use code like:
DoCmd.ShowToolb ar "Menubalk", acToolbarNo
DoCmd.ShowToolb ar "Formulierweerg ave", acToolbarNo
Last week when a sysadmin loaded the app on his laptop, the
application errored on these lines. ==He was using an
English/American version of Access.

Adapting the code to the following works (also in my Dutch version):
DoCmd.ShowToolb ar "Menu bar", acToolbarNo
DoCmd.ShowToolb ar "Form view", acToolbarNo

I know that to avoid this problem it is best to *not* use a localized
version but... Is there a way to use constants instead of the
'localised' name ? If so, how to find the constants ?? Another way to
avoid this problem ??

Arno R
In Access 2007

Debug.Print Application.Men ubar
gives me the name of the default application menubar for that appplication.

Dim z As Long
For z = 1 To CommandBars.Cou nt
Debug.Print z, CommandBars(z). Name
Next z
gives me the ordinal and name of [some or all?] of the various toolbars and
menubars in the application.

Having noted that item 19 is "Menu Bar" and that item 18 is "ESOII" (or
vice versa) I can toggle their visibility by pointing to their ordinal as:
With CommandBars
.Item(19).Visib le = .Item(18).Visib le
.Item(18).Visib le = Not .Item(19).Visib le
End With

I have a reference set to Office 12 but I !!!!!think or maybe guess!!!!!
that that is not necessary but helps with code by providing intellisense.

Feb 23 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3049
by: Thomas Weholt | last post by:
Hi, I'm doing a web-project using Python and was wondering how I can add a localization option to my web-pages? Does anybody have any hints or ideas? I'm using simpleTal/es as a template-engine. I need to let the user specify (or download a language pack ) and customize central text elements in a web-portal according to his/her needs. If anybody can share some thoughts or examples on how they did this or ideas
11
1988
by: Manish Pansiniya | last post by:
Hello to all, we want to update resource online when administrator changes Localization database. can anybody tell me weather it is possible to run localization toolkit in command line or as batch process to generate satellite assembly ??? Reply ASAP whatever it is.
0
1076
by: jagdish patel | last post by:
Hello, I am working on a webapplication with the Localization support.For that I used Localization tool kit of Microsoft. Problem: I cannot add the item into the DropDownList contol,Whose vlaue come form the Localization database(set the key of the control).I also not set the index property for the DropDownList control.
6
1992
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with --->LocalizationManagement.exe, I get an exception: --->Unable to generate loose file resources
8
2546
by: Olivier Matrot | last post by:
I encounter a problem with Localization features in ASP.NET 2.0. Is seems that the framework is not able to manage neutral cultures such as 'fr', or 'de'. Those are the culture sent by default from a french or German Internet Explorer in France or Germany. There is a runtime error "System.NotSupportedException: Culture "fr" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's...
5
2655
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope someone can give me a clue... Questions: 1) Do my eyes deceive me or is it true that localization is still totally utterly disengaged from the Designer and Property Editor... either in source
2
2494
by: monsieur.marco | last post by:
Hi all, Does anybody know how to save localization in an excel workbook (C# 1.1)? I'm not sure this is possible, but I'm trying to do this so that numberColumns keep their format no matter what local is set in the computer where the file is opened. Thanks in advance, Swayze
2
1159
by: Robert Dufour | last post by:
In an english only application, it is fairly easy to make the table and field names in your application descriptive so that on creating the interface, most tools that bind data take the default field name and put it as the column name in say a grid control. However if you have a multi lingual UI you can localize the UI in Vs 2005 by selecting the language of the form and changing the text property of the controls to the localized text....
2
1653
by: Hans Artm | last post by:
Hi, We are developing a site that needs to be localized (english + spanish). The site has a lot of "static" pages with a lot of text, and some dynamic pages. We are unsure how to develop the static part. We could use a localize/literal control and stick content in a resx-file - but it could be several paragraphs in pure HTML and the text is not 100% static. It might change a few times a year. Another way is to have two html pages and...
0
10656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10413
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9214
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3879
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.