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.

Problem mit Filterkriterien

Empfohlene Antworten

Veröffentlicht

Guten Morgen!

ich hab da ein problem mit meinem filter:

wie muss ich die anfrage schreiben, wenn ich nach 2 kriterien suchen will.

also in meinem fall sollten die spalten matchcode und kdnr durchsucht werden.

es soll egal sein, nach was man sucht (matchcode oder kdnr) - es sollte der gleiche ds angezeigt werden.

ich habs mal so versucht:

bs.Filter = "Matchcode like '%" & txtSearch.Text & "%'  Or KdNr like '%" & CType(txtKdNr.Text, Integer) & "%'"

auch schon mit AND und &, aber leider auch ohne erfolg.

vllt kann mir einer von euch sagen, was ich dabei falsch gemacht hab.

danke schon im vorraus!

lg

OR ist IMO schon das richtige verknüpfungsverb. was genau ist bei dir "bs" - ist das ein recordset?

s'Amstel

ich habs mittlerweile lösen können.

Dim cbuffer As String = ""

        If Not String.IsNullOrEmpty(txtSearch.Text) Then


            Select Case txtSearch.Text.Substring(0, 1)

                Case "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"

                    cbuffer = "KdNr >= " & CType(txtSearch.Text, Integer)

                Case Else

                    cbuffer = "Matchcode like '%" & txtSearch.Text & "%'"

            End Select


        End If

        bs.Filter = cbuffer

trotzdem danke! :)

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.