B
BaWork
I have the following to insert a new record:
<%
..
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=qqqqq;"
SQLStmt = "INSERT INTO tbl_qqqqqq (main_cat, cat_fee, fee_amount) "
SQLStmt = SQLStmt & "VALUES ('" & main_cat & "','" & cat_fee & "','" &
fee_amount & "')"
Set RS = Conn.Execute(SQLStmt)
set rs=nothing
..
%>
The "fee_amount" is a number value that has a default value associated
with that field in the Access DB.
When I submit the form WITHOUT a value in the "fee_amount" form field, I
get the following error:
"[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in
criteria expression."
That error typically means something like letters are are trying to be
inserted into a field that has a number data type.
In this case, no value has been given, when isn't the default value
being used when the INSERT statement is run?
Thanks.
Brett
(e-mail address removed)
<%
..
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=qqqqq;"
SQLStmt = "INSERT INTO tbl_qqqqqq (main_cat, cat_fee, fee_amount) "
SQLStmt = SQLStmt & "VALUES ('" & main_cat & "','" & cat_fee & "','" &
fee_amount & "')"
Set RS = Conn.Execute(SQLStmt)
set rs=nothing
..
%>
The "fee_amount" is a number value that has a default value associated
with that field in the Access DB.
When I submit the form WITHOUT a value in the "fee_amount" form field, I
get the following error:
"[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in
criteria expression."
That error typically means something like letters are are trying to be
inserted into a field that has a number data type.
In this case, no value has been given, when isn't the default value
being used when the INSERT statement is run?
Thanks.
Brett
(e-mail address removed)