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.

[Acc97] per Abfrage "0" einfügen

Empfohlene Antworten

Hallo alle zusammen,

brauche mal eure Hilfe :).

Wie kann ich per Abfrage in Access97 eine "0" in die erste Stelle eines Feldes einfügen?

Ich hab z.B. folgenden Feldinhalt "47-3058" nach der Abfrage soll das Feld so aussehen "047-3058".

Hat da jemand ein tipp für mich?

Vielen Dank schon mal :).

Grüße

2DaBeat

Also wenn ich micht jetzt recht entsinne, sollte es unter Access97 genauso gehen wie unter Access2000. Das ist eigentlich ganz einfach mit einen SQL-Befehl zu erledigen.


update mitglieder

set telefon = "0" + telefon;

Zu erklären ist es so, das vor dem Update ein String zusammengestellt wird. Eben aus der gewünschten 0 und dem Tabellenfeld "telefon".

Anschliessend wird Telefon durch den neuen, zusammengesetzen String ersetzt.

Wenn in Telefon also "1234" steht, so steht nach dem Update-Befehl "01234" in Telefon.

Zu bemerken ist noch, das das Feld Telefon vom Typ "Text" ist. Wäre es vom Typ "Zahl", so würde eine 0 am Anfang automatisch von Access entfernt werden.

Ich hoffe das reicht dir schon!

Original geschrieben von Magoo

Ich hoffe das reicht dir schon!

ja :D

Vielen Dank...funktioniert einwandfrei :)

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.