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.

Datenbankzugriff mit Vb

Empfohlene Antworten

Hallo,

ich will was kleines in Vb programmieren und zwar mit nem Datenbankzugriff auf Acces. Das funktioniert auch alles schon ganz toll, nur ich will jetzt prüfenm wenn jemand was in die Datenbank neu einpflegt, ob der Name(in diesemfall ein Land) schon vergeben ist. Dachte mir das so:

Do While Not RS.EOF

If RS.Fields("name") = tf_name.Text Then

MsgBox("Datensatz bereits in der Datenbank vorhanden!")

Exit Sub

End If

RS.MoveNext()

Loop

Nur leider sagt er mir immer:

Beim umwandeln in eine Zahl, muss der Wert eine Zahl sein, die kleiner als unendlich ist.

danke schonmal für eure Antworten :uli

gruß socke

ungetestet: verwende RS.Fields("name").Value oder rs("name"). prüfe im debuggingfenster, ob der ausdruck den feldinhalt beinhaltet. vergleiche diesen wert mittels StrComp() mit tf_name.Text, und werte den rückgabewert aus.

bedenke, dass du bei sehr vielen DS alle durchgehen musst, und ob eine select count nicht performanter wäre.

s'Amstel

wow,

danke für die super schnelle antwort und funktioniert jetzt.

Danke

socke :) :marine

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.