Hi All,
Sometime since last week, the masking character in Access SQL on my computer (Access 2003/WinXP SP2) changed from the old standard of asterisk (*) to percent sign (%), like it is in Oracle and SQL.
Here's a snippet which DOES NOT WORK:
This code WORKS JUST LIKE IT SHOULD:
Does anyone have any insight about why this happened?
In a way, it would be good to change because I could use the same syntax in all of my databases, but in a way, this is horrible because it is going to break dozens of my Access databases.
Anyone who knows anything about what happened, please write.
Tranman
"Adam was not alone in the Garden of Eden, however,...much is due to Eve, the first woman, and Satan, the first consultant." Mark Twain
Sometime since last week, the masking character in Access SQL on my computer (Access 2003/WinXP SP2) changed from the old standard of asterisk (*) to percent sign (%), like it is in Oracle and SQL.
Here's a snippet which DOES NOT WORK:
Code:
Private Sub del2005()
Dim strSQL As String
Dim tdf As TableDef
For Each tdf In CurrentDb.TableDefs
strSQL = "Delete from " & tdf.Name & " where accident_key like '2005[red]*[/red]'"
CurrentProject.Connection.Execute strSQL
Next
Set tdf = Nothing
End Sub
This code WORKS JUST LIKE IT SHOULD:
Code:
Private Sub del2005()
Dim strSQL As String
Dim tdf As TableDef
For Each tdf In CurrentDb.TableDefs
strSQL = "Delete from " & tdf.Name & " where accident_key like '2005[red]%[/red]'"
CurrentProject.Connection.Execute strSQL
Next
Set tdf = Nothing
End Sub
Does anyone have any insight about why this happened?
In a way, it would be good to change because I could use the same syntax in all of my databases, but in a way, this is horrible because it is going to break dozens of my Access databases.
Anyone who knows anything about what happened, please write.
Tranman
"Adam was not alone in the Garden of Eden, however,...much is due to Eve, the first woman, and Satan, the first consultant." Mark Twain