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.

VB -> MySQL

Empfohlene Antworten

hallo.

hat einer von euch vielleicht ein beispiel, wie ich auf die mysql datenbank komme?

ich hab schon myODBC installiert und verlinkt. brauch nur noch die syntax, wie ich mit den abfragen arbeiten muss.

danke!

noah

Also das läuft wie bei jedem anderen ODBC Treiber ab

Hier habe ich ma ein kleines Test Beispiel

Ich hoffe das hilft dir weiter.


Option Explicit


Const ConnectServer = "driver={MySQL};server=mfgis03;uid=test;pwd=test;database=test"

Private cn1 As ADODB.Connection


Private Sub Form_Load()

  Dim strQuery1 As String

  Dim rsUser As ADODB.Recordset

  Set rsUser = New ADODB.Recordset

  Set cn1 = New ADODB.Connection


  cn1.Open ConnectServer

  strQuery1 = "Select name, besitzer, art FROM pet"

  rsUser.Open strQuery1, cn1, adOpenStatic


  Text1.Text = Trim(rsUser!Name)

  Text2.Text = Trim(rsUser!besitzer)

  Text3.Text = Trim(rsUser!art)


  If rsUser.State = adStateOpen Then

     rsUser.Close

  End If

  If cn1.State = adStateOpen Then

     cn1.Close

  End If


End Sub

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.