473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Toolbarnames, localization problem

Hi all

I am using Dutch versions of MSAccess and I use code like:
DoCmd.ShowToolbar "Menubalk", acToolbarNo
DoCmd.ShowToolbar "Formulierweergave", 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.ShowToolbar "Menu bar", acToolbarNo
DoCmd.ShowToolbar "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 2241
"Arno R" <ar****************@planet.nlwrote in
news:47***********************@text.nova.planet.nl :
Hi all

I am using Dutch versions of MSAccess and I use code like:
DoCmd.ShowToolbar "Menubalk", acToolbarNo
DoCmd.ShowToolbar "Formulierweergave", 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.ShowToolbar "Menu bar", acToolbarNo
DoCmd.ShowToolbar "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.Menubar
gives me the name of the default application menubar for that appplication.

Dim z As Long
For z = 1 To CommandBars.Count
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).Visible = .Item(18).Visible
.Item(18).Visible = Not .Item(19).Visible
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
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....
11
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...
0
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...
6
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...
8
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...
5
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...
2
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...
2
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...
2
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...

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.