Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fehler 80040e14 beim Delete

Empfohlene Antworten

Veröffentlicht

hallo,

ich habe folgendes Problem, ich bekomme die Fehlermeldung:

Microsoft JET Database Engine-Fehler '80040e14'

Syntaxfehler (fehlender Operator) in Abfrageausdruck 'Produkt_id='.

/datenbank/change.asp, Zeile 496

ich habe versucht dieses Problem zu beheben, aber ich bekomme immer noch diese Fehlemeldung, mein Code sieht so aus:

<%Dim Produkt_id

Produkt_id = Request("Produkt_id")

SQLquery="DELETE * FROM LU_Produkt WHERE Produkt_id=" &Request("Produkt_id")

Set objRS=Conn.execute(SQLquery)%>

Hätte jemand eine Idee, was in dem fehlerhaft sein kann?

SQLquery="DELETE * FROM LU_Produkt WHERE Produkt_id=" &Request("Produkt_id")

Was steht denn in Request("Produkt_id") drin und vor allem von welchem Datentyp? Falls es ein String ist muß es so heißen:

SQLquery="DELETE FROM LU_Produkt WHERE Produkt_id=" & Request("Produkt_id") & "';"

Lass dir die Variable am besten mal vorher ausgeben und schau, ob da auch das drin steht, was drin stehen soll.

EDIT: Gerade gefunden: http://www.aspwebpro.com/tutorials/asp/passvariableswqs.asp Nach dem müßte es Request.QueryString("Produkt_id") statt Request("Produkt_id") heißen.

hallo,

ich habe folgendes ausprobiert und es hat funktioniert:

<%

Produkt_id=Request("Produkt_id")

SQLquery = "DELETE FROM LU_Produkt WHERE Produkt_id = " &Produkt_id

Set objRS = Conn.Execute(SQLquery)%>

das Zeichen "*" habe ich gelöscht und anstatt &Request("Produkt_id") habe ich &Produkt_id geschrieben.

Gruß.

Sorry, übersehen

war ein Syntax Fehler!!

Es muss

"DELETE FROM <tabelle> WHERE .." lauten

ein "*" ist beim DELETE nicht erlaubt

Gruß,

Markus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.