F
Frank Situmorang
Hello,
I started to make tables as follows, but I want to know how can we make
query to pull the selected language:
tblLanguages
LanguageID
LanguageName
tblPhrases
PhraseID
PhraseName
tblPhrasesInLanguages
PhraseID
LanguageID
Phrase
Then you can write a simple query that can pull the correct phrase
based on the chosen language, and (for example) set the form title in
the form's Load event:
Me.Caption = GetPhrase(FORM1_CAPTION)
public function GetPhrase(byval intPhraseID as Integer) as String
'TODO: select the data, based on given PhraseID and global language
selection
GetPhraseID = strPhrase
end function
Anyone can help me to make it work?
Thanks in advance
I started to make tables as follows, but I want to know how can we make
query to pull the selected language:
tblLanguages
LanguageID
LanguageName
tblPhrases
PhraseID
PhraseName
tblPhrasesInLanguages
PhraseID
LanguageID
Phrase
Then you can write a simple query that can pull the correct phrase
based on the chosen language, and (for example) set the form title in
the form's Load event:
Me.Caption = GetPhrase(FORM1_CAPTION)
public function GetPhrase(byval intPhraseID as Integer) as String
'TODO: select the data, based on given PhraseID and global language
selection
GetPhraseID = strPhrase
end function
Anyone can help me to make it work?
Thanks in advance