View Single Post
  #8  
Old April 23rd, 2010, 04:52 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Names Translation

On Thu, 22 Apr 2010 23:51:01 -0700, Highlight between 3 fields
wrote:

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


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!

--

John W. Vinson [MVP]