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 + Access

Empfohlene Antworten

Veröffentlicht

Hallo!

Mein Problem ist folgendes:

Habe folgende Codezeile in meiner Anwendung (mit VB 6.0 geschrieben).

Set db = OpenDatabase(App.Path & "\" & "Datenbank.mdb")

Diese Anwendung verweist auf meine Access-Datenbank, die für die Anwendung benötigt wird. Problem: Wenn die Anwendung in einem anderen Vezeichnis gespeichert ist als die Datenbank bekomme ich eine Fehlermeldung. Kann mir jemand einen Tipp geben, wie ich das Problem lösen kann?

Danke

Ja du prüfst einfach ab Ob die datei existiert, existiert sie alles ok.

Wenn nicht dann zeigst du ne Fehlermeldung oder so.

BSP Function um zu sehen ob es die DB gibt:

Public Function FileStatus(strFile As String) As Boolean

Dim intTemp As Integer

On Error GoTo NotFound

intTemp = GetAttr(strFile)

FileStatus = True

Exit Function

'## On Error set Function to False ##

NotFound:

FileStatus = False

End Function

Wenn die DB nicht im Anwendungsverzeichnis gefunden wird, könntest du einen CommonDialog aufrufen mit dem der Pfad zur DB eingestellt werden kann.

Den gefundenen Pfad köntest du mit SaveSetting in der Registry speichern und mit GetSetting beim nächsten Programmstart als Pfad zur DB benutzen.

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.