J
Jack
Hi,
I have a sql statement in asp page as below
sql = " INSERT INTO tblExpense (ENO, EntryDate, ContractedServiceExpense, "
sql = sql & "TravelExpense, PersonnelExpense)"
sql = sql & " VALUES('" & l_ENO & "', '" & l_Date & "', '" &
l_contractedserviceexpense & "', '" & l_travelexpense & "', '" &
personnelexpense & "')"
The response.write on sql gives the following:
INSERT INTO tblExpense (ENO, EntryDate, ContractedServiceExpense,
TravelExpense, PersonnelExpense) VALUES('1', '03/01/2005', '5', '5', '10')
However when I am trying to open the recordset, it gives me the following
error:
Error Type:
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
I suspect the variables are not properly used to build the above statement.
The ENo is of text type,
EntryDate is of date type while
the rest of the last three fields are of number type.
I appreciate any help. Thanks in advance. Regards.
I have a sql statement in asp page as below
sql = " INSERT INTO tblExpense (ENO, EntryDate, ContractedServiceExpense, "
sql = sql & "TravelExpense, PersonnelExpense)"
sql = sql & " VALUES('" & l_ENO & "', '" & l_Date & "', '" &
l_contractedserviceexpense & "', '" & l_travelexpense & "', '" &
personnelexpense & "')"
The response.write on sql gives the following:
INSERT INTO tblExpense (ENO, EntryDate, ContractedServiceExpense,
TravelExpense, PersonnelExpense) VALUES('1', '03/01/2005', '5', '5', '10')
However when I am trying to open the recordset, it gives me the following
error:
Error Type:
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
I suspect the variables are not properly used to build the above statement.
The ENo is of text type,
EntryDate is of date type while
the rest of the last three fields are of number type.
I appreciate any help. Thanks in advance. Regards.