|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression. /Closed_Job_detail.asp, line 24 DBName = server.mappath("database/workshop.mdb") Application("ConnectionString") = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBName Set dbConnection = Server.CreateObject("ADODB.Connection") dbConnection.open Application("ConnectionString") ****LINE24****Set Closedjobinfo = dbConnection.execute("SELECT * FROM tbl_Job WHERE Job_ID='" & Request("Job_ID") & "'")****LINE24**** Job_ID field is an ms access autonumber -------- Can Someone help me out with this please?? |
|
#2
|
|||
|
|||
|
Remove the single quotes around the Request("Job_ID")
You only put the single quotes around textual or date columns, not numerical columns. It would be a good idea to sanitize the input value before allowing it to be included in your sql statement. Search for "sql injection" for more info.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Help...Microsoft JET Database Engine (0x80040E07) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|