Names Translation

  • Thread starter Highlight between 3 fields
  • Start date
H

Highlight between 3 fields

Hello

I made program on MS Access 2007.

I am thinking to make possibility for translate(changes) the "menu, buttoms
and columns name".

For the columns change so such as:

Original columns name Changes to other
Name Namn
Price1 Pris1
Price2 Pris2

After converting to MDE.
I mean when I give my work as MDE to anyone, so he can change the word that
needs for forms and raports.

Any comments appreciate.

Thanks
 
J

John W. Vinson

Hello

I made program on MS Access 2007.

I am thinking to make possibility for translate(changes) the "menu, buttoms
and columns name".

For the columns change so such as:

Original columns name Changes to other
Name Namn
Price1 Pris1
Price2 Pris2

After converting to MDE.
I mean when I give my work as MDE to anyone, so he can change the word that
needs for forms and raports.

Any comments appreciate.

Thanks

One possible solution would be to use the field's Caption property. If the
fieldname is "Price1" and the caption "Pris1" the latter is what you'll see in
many contexts.

Otherwise you'll need to just manually edit the controls.
 
H

Highlight between 3 fields

Hello

The important is not fieldname to be changed, but is it possibble to change
the caption?

If yes, how?

Best regards
 
J

John W. Vinson

The important is not fieldname to be changed, but is it possibble to change
the caption?

If yes, how?

Sure. Open the table or query in design view; select the field; and change its
Caption property on the field properties.

In VBA you can reference the caption property of the field; you may need to
create the property first since it's a "user property" which doesn't exist
until it's needed.
 
H

Highlight between 3 fields

Hi

Thank you for information

I did test it and it work, but it didn't changed the caption on form.
Though the important is that be changed on form.

Is it possible to make the text on caption as link to another table or
something else to show the new text?

Thanks a lot
 
J

John W. Vinson

Hi

Thank you for information

I did test it and it work, but it didn't changed the caption on form.
Though the important is that be changed on form.

It wouldn't, unless you recreate the control on the form. The table Caption
property is the default for new controls, but would not change existing
controls.
Is it possible to make the text on caption as link to another table or
something else to show the new text?

I expect it would be possible but it would take some code. The caption
property isn't exposed all that well in the table structure. You might want to
have your own table of fieldnames, languages, and captions and put textboxes
(rather than labels) on your form to look up the appropriate caption for the
user's preferred language.
 
H

Highlight between 3 fields

I expect it would be possible but it would take some code. The caption
property isn't exposed all that well in the table structure. You might want to
have your own table of fieldnames, languages, and captions and put textboxes
(rather than labels) on your form to look up the appropriate caption for the
user's preferred language.


Hello

Well, let make new table that namn "language"
have columns with name FieldName , CurrentWord, NewWord

So do you mean?

Can you please show me which kind of code that be on "Onload Form" to change
one caption to let me understand, then I can continue.

Thanks a lot
 
J

John W. Vinson

Hello

Well, let make new table that namn "language"
have columns with name FieldName , CurrentWord, NewWord

So do you mean?

Can you please show me which kind of code that be on "Onload Form" to change
one caption to let me understand, then I can continue.

Thanks a lot

I'd add one more field to the Language table: Language. And you probably
don't need the CurrentWord field. For instance you could have records like

Language; FieldName; Caption
English; FirstName; "First Name"
German; FirstName; "Vorname"
Spanish; FirstName; "Nombre de pila"

In the form's Load event you would assign the Caption property of each control
on the form to the appropriate value from this table for the user; I'd presume
that you would have the user's prefeered language in a global variable or a
control on a startup form.

This is a simple untested solution to what could be a more complex problem,
but I hope this gives you some ideas!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top