GeoffS Level: VB Lord

 Registered: 29-09-2004 Posts: 536
|
Re: Two language in one field
Hi,
Any control that can contain text can display whatever you want it to say, but you can only put one "Value" for the "Text" property. There is no (standard) control that will do a language translation for you and then display both - you have to do this yourself. So, you need to either store the text in two fields in your database, one in each language, then combine them into one string to display in your control, or save in just one field already combined.
So, for example, if you save in two fields in the database the phrase for "Good Day" in English and Polish then you would display on your report :-
rptTextBox1.Text = rst("English") & vbCrLf & rst("Polish")
Which would display :-
You just need to make sure the size of the control is big enough to display two lines of text.
____________________________
multi-tasking - the ability to hang more than one app. at the same time.
|