I’m trying to insert a row into an access database (mdb, access 2000 AFAIK) as follows:
conn.execute("INSERT INTO entries (userCol,typeCol,numitems,entrytime,worktime) VALUES ('mattk','Item 1',4,1339361723424,1339361723424)")
I’m receiving the following error:
Message: Data type mismatch in criteria expression.
The variable conn is an adodb connection object. It’s declared and initialised in javascript as follows:
var conn = new ActiveXObject("ADODB.Connection");
conn.open('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + source + ';User Id=admin;Password=;');
I’ve confirmed the following data types:
userCol: text
typeCol: text
numitems: integer
entrytime: long
worktime: long
I just can’t fathom what could be causing this. Thanks in advance for any help.
MS-Access Long data type can hold values from -2,147,483,648 to 2,147,483,647 (signed).
You’re trying to insert too big numbers.