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.

SQL Abfrage (Daten in einen String quetschen)

Empfohlene Antworten

Hi,

habe hier eine kleines Problem. Schreibe geraden an einer kleinen Kontakverwaltung und habe hier mehrer Emailadressen. Diese will ich zu einem String zusammenfassen (nach jeder Adresse ein ; einfügen) und dann Outlook übergeben.

Das mit Outlook ist kein Problem, doch wie kann ich einen Tabelle so auslesen? Bzw. gibt es irgendwo einen Anweisung, womit ich mein Vorhaben realisieren kann?

Pro Datensatz gibt es eine EMail-Adresse :) . Von allen Datensätzen der Tabelle sollen die EMailadressen zusammengefaßt werden und als String übergeben werden.

Thx, wenn mir jemand weiterhelfen kann oder eine Lösung dafür weiß

Klingt nach einem typischen Problem, was scih mit ein wenig VBA-Code lösen lässt:

(ich vermute mal, dass wenn ihr Outlook einsetzt, dass dann auch VBA kein Problem ist)


Sub EMailList()

    Dim dbs As Database, rst As Recordset

    Dim strSQL As String, strEMail As String


    strEMail = ""


    ' Verweis auf aktuelle Datenbank holen.

    Set dbs = CurrentDb

    strSQL = "SELECT EMail FROM tabelle1 WHERE EMail IS NOT NULL"

    Set rst = dbs.OpenRecordset(strSQL)

    While Not rst.EOF

        If strEMail <> "" Then strEMail = strEMail & "; "

        strEMail = strEMail & rst.Fields(0)

        'Debug.Print strEMail

        rst.MoveNext

    Wend

    rst.Close

    Set dbs = Nothing


    MsgBox "EMail-Adressen:" & strEMail 


   'ToDo: Mail generieren

End Sub


hoffe das hilft

thx :)

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.