|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Updating access database
Super newbie here, just trying to update some data in a database. Using a very simple example, I keep getting an error:
Error Type: Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression 'URL=http://compass/messages/template_test/star_test/autowrite.html'. Code:
dim pageURL pageURL="http://compass/messages/template_test/star_test/autowrite.html" Dim strSQL 'Some code to connect to the database, but this line seems to be the culprit... strSQL = "SELECT PageList.* FROM PageList WHERE URL=" & pageURL Can provide more code if need be. |
|
#2
|
|||
|
|||
|
response.write the sql string to your browser. Copy the sql string your code made and paste it into Access' query tool. See if it works.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
The issue was it was expecting quotes around the string. Changing it to the following did the trick: strSQL = "SELECT PageList.* FROM PageList WHERE URL='" & pageURL &"'"
|
|
#4
|
|||
|
|||
|
thanks for posting your solution.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Updating access database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|