Hi everybody, first to say I appreciate all the help and replies that genius members had provided me with, this project wouldnt be perfect without your help, and Im sorry if I ask so much questions, but I found this forum as a gold mine to me with this number of kind and nice ppl.
Now I have "tbl_organs" with three columns "organNameLatin" and "organNameArabic" as body organs names in latin and its arabic translation,and "bodySystem" which contains body sestems "digestive, respiratory..." in Latin only, and "frm_visit" as a form for recording visit data, I added unbound combo box "cbo_organ" with raw source "tbl_organs", I addedd two command buttons "cmd_En" and "cmd_Ar" to convert the combo box value from english to arabic, I mean cmd_En for showing combo box with two columns "organNameLatin" and "bodySystem",for cmd_Ar will show "bodySystem" and "organNameArabic" , the value of "cbo_organ" then used with another field for populating a txt box, i used this code for onClick event for "cmd_En" :
Me. cbrgan = "select distinct bodySystem, organLatinName" & _
"from tbl_organs " & _
" order by bodySystem;"
And for cmd_Ar :
Me. cbrgan = "select distinct bodySystem, organArabicName" & _
"from tbl_organs " & _
" order by bodySystem;"
By pressing cmd_En nothing changes and combo box still showing three columns, also the final result is populating bodySystem in final txt box instead of organ name, I dont know if properties of combo box "cbo_organs" like column count and row source have effect on this or not, and if I should determine row source of combo box from the beginning or not ?
NB: bodySystem is in one language only which is Latin, the form is unbound, combo and final txt box are unbound. I appreciate your help.
Now I have "tbl_organs" with three columns "organNameLatin" and "organNameArabic" as body organs names in latin and its arabic translation,and "bodySystem" which contains body sestems "digestive, respiratory..." in Latin only, and "frm_visit" as a form for recording visit data, I added unbound combo box "cbo_organ" with raw source "tbl_organs", I addedd two command buttons "cmd_En" and "cmd_Ar" to convert the combo box value from english to arabic, I mean cmd_En for showing combo box with two columns "organNameLatin" and "bodySystem",for cmd_Ar will show "bodySystem" and "organNameArabic" , the value of "cbo_organ" then used with another field for populating a txt box, i used this code for onClick event for "cmd_En" :
Me. cbrgan = "select distinct bodySystem, organLatinName" & _
"from tbl_organs " & _
" order by bodySystem;"
And for cmd_Ar :
Me. cbrgan = "select distinct bodySystem, organArabicName" & _
"from tbl_organs " & _
" order by bodySystem;"
By pressing cmd_En nothing changes and combo box still showing three columns, also the final result is populating bodySystem in final txt box instead of organ name, I dont know if properties of combo box "cbo_organs" like column count and row source have effect on this or not, and if I should determine row source of combo box from the beginning or not ?
NB: bodySystem is in one language only which is Latin, the form is unbound, combo and final txt box are unbound. I appreciate your help.