missing operator - ODBC CRecordSet
-
Hi,
ich habe folgendes Problem. Ich will ein SQL statement (ODBC, MS Access) abfeuern mit CRecordSet. Beim Öffnen des Recordsets sagt er :
Syntax Error (missing operator)in Query Expression.Die Select Anweisung sieht so aus :
"SELECT * FROM TBitmaps WHERE BitmapPath = D:\Work\Pictures\Einmessplatte.bmp"Weiss jemand vielleicht woran es liegen könnte ? Muss ich den rechten String noch irgendwie bearbeiten vorher ?
MfG
Hunter
-
Aloha,
bin mir nicht ganz sicher, glaube aber, wenn man nach Strings sucht, daß diese in Hochkommatas gesetzt werden müssen.
In Deinem Falle :
[cpp]
"SELECT * FROM TBitmaps WHERE BitmapPath = 'D:\Work\Pictures\Einmessplatte.bmp'"
[/cpp]Grüße
BOA
-
danke BOA,
so klappts wunderbar.