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.

Felder Zählen

Empfohlene Antworten

Hi,

ich möchte in Acces97 die Felder einer Spalte zählen, wie mit Dcount, nur das kein Inhalt doppelt gezählt werden darf. Also wenn die Spalte Namen heißt unf als Felder Hans, Chrisitian, Hans, Sepp, Markus, Sepp hat, müssen 4 gezählt werden und nicht 6.

kann mir wer sagen wie das geht?

Hast du es mal mit DISTINCT versucht!

So könnte es dan aussehen:

SELECT DISTINCT COUNT(name) FROM helptext;

Cyrill

Kein Problem!

Hier die Lösung!!!

Arbeite in VBA mit einem Recordset!

Also ungefähr so der Code:

Dim rsRecordset as Recordset

dim iAnzahl as Integer

Set rsRecordset = CurrentDB.OpenRecordset("SELECT DISTINCT Feldname FROM DeineTabelle")

rsRecordset.movefirst

iAnzahl = rsRecordset.RecordCount

sorry cyrill, aber wenn ich das so abfrage zählt er doppelt vorkommende auch...

<FONT COLOR="#a62a2a" SIZE="1">[ 21. November 2001 10:12: Beitrag 1 mal editiert, zuletzt von s35i ]</font>

danke @ sonic83,

mit dem recordcount funktionierts!!!!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.