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.

Dringend! Access Problem!

Empfohlene Antworten

Hallo!

Ich habe folgendes Problem:

Wie kann ich in Access über Makros oder VB feststellen ob eine Datenbank vorhanden ist, z.B. wenn kein Netz da ist, ist die Datenbank NICHT vorhanden.

Danke für Eure Hilfe.

Hi,

du kannst das in einem Modul innerhalb von Access machen, das du per Makro z.B. beim Start deiner Datenbank aufrufst.

Darinüberprüfst du einfach per Quellcode, ob die Datei existiert, in etwa so:

'******************************************************************************

'Funktion : FileExist

'Argumente : Pfad + Dateiname

'Beschreibung: Prüft, ob eine Datei existiert

'Rückgabe : True oder False

'Datum : 08.07.2000

'Autor : Michael Kagerbauer

'*******************************************************************************

Function FileExist(Datei As String)

On Error Resume Next

FileExist = Len(Dir(Datei)) > 0

End Function

Das wars auch schon.. musst dir nur die entsprechende Prozedur noch ins Modul schreiben:

Sub DB_Start

If FileExist("C:\MEINEDB.MDB") THEN

'weitermachen...

Else

Msgbox "DB nicht gefunden !"

'und Programm verlassen ...

End Sub

------------------

Michael Kagerbauer

Webmaster Azubidatenbank.de / Azubidatenbank.com

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.