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.

Abfrageproblem

Empfohlene Antworten

Veröffentlicht

Hallo an alle

Ich hoffe das ihr mir helfen könnt.

folgendes Problem.

Ich habe eine Access_db und in dieser eine View angelegt. Diese View wird auch gefüllt. Nun möchte ich bestimmte Datensätze herausfiltern. Mittels eines SQL-Statement und einer bedingung. Das Statement lautet:

"SELECT * from Umsatz_View Where td = '" & bed & "'",

Dies alles passiert in einem VB-Code

Die Variable "bed" ist mit "Variant" formatiert und das Db-Feld mit "Text".

Datensätze für diese Bedingung sind vorhanden, aber ich bekomme nur einen leeren String zurück.

Könnt Ihr mir sagen wo mein Fehler liegt?

Danke im vorraus

vbler

Versuche mal statt = IS, also

"SELECT * from Umsatz_View Where td IS '" & bed & "'",

Hallo TDM

Mit like bekomme ich auch keine Ausgabe. Die Hochkommas sind VB-Spezifisch.

Ja, das weiß ich, aber wenn du es dann an eine DB schickst, muss es ja dann DB-spezifisch sein, nicht, oder?!

Auch wenn's vielleicht schon zu weit in die Programmierung reingeht:

Bekommst du eine Exception geworfen, oder ist das Recordset wirklich nur leer?

Am Besten einfach mal das Statement ausgeben lassen und manuell überprüfen. :P

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.