I wish to make a database call with a JS-function. I have tried to use the code coming from SCOUT, but I had no succes, what am I doing wrong?
Code:function LngText(TextID,Language) { Language = 1; TextID = 1; 'if you have language columns objRS= "SELECT "& Language &" FROM Generelt WHERE ID="&TextID&";",dpd_sprog.mdb 'if you have langauge tables objRS= "SELECT text FROM "&Language&" WHERE ID="&TextID&";",dpd_sprog.mdb LngText=objRS document.navform.text21.value = LngText end function




Reply With Quote