hi, i have this code:
i'm not really familiar with javascript. how would i translate this cod into javascript, please?
thanks.
Code:
Const adOpenStatic = 3
Const adLockOptimistic = 3
db_path = "orders.mdb"
db_file = db_path
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Open _
"Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source = " & db_path
commandstring = "INSERT INTO orders " & _
"(model, amt, dte) " & _
"VALUES (" & _
chr(39)& model & chr(39)& ", " & _
chr(39)& amt & chr(39)& ", " & _
chr(39)& date() & chr(39) & ");"
objConnection.Execute commandstring
msgbox "All records were processed successfully"
objrecordset.close
objConnection.close
thanks.