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.

[MS Access 2000/Oracle9i/VBA]

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

dubioses Problem, welches ich nicht verstehe.

Habe folgenden Code:

If strODBC = "nein" Then

Set rs = CurrDataBase.OpenRecordset("SELECT TOP 1 ... FROM ((t_pro LEFT JOIN t_pro1 ON t_pro.pronr1 = t_pro1.pronr1) LEFT JOIN t_pro2 ON t_pro.pronr1 = t_pro2.pronr1) LEFT JOIN t_rek ON t_pro.pronr1 = t_rek.pronr1 WHERE t_pro.pronr1 = '" + strPronrOK + "'")

ElseIf strODBC = "ja" Then

Set rs = CurrDataBase.OpenRecordset("SELECT TOP 1 ... FROM ((t_pro LEFT OUTER JOIN t_pro1 ON t_pro.pronr1 = t_pro1.pronr1) LEFT OUTER JOIN t_pro2 ON t_pro.pronr1 = t_pro2.pronr1) LEFT OUTER JOIN t_rek ON t_pro.pronr1 = t_rek.pronr1 WHERE t_pro.pronr1 = '" + strPronrOK + "'")

End If

'

If Not (rs.BOF And rs.EOF) Then

rs.Edit

...

Zur Erklärung, das ganz läuft in einem Access2000 Frontend via verknüpfter Tabellen. Bei "strODBC="nein"" handelt es sich bei den verknüpften Tabellen um MDBs. Beim anderen Fall um eine ODBC-Verknüpfung Richtung Oracle 9i.

Jetzt das komische, ich weiß, dass man Abfragen, welche Joins enthalten nicht aktualisieren kann (rs.edit), jedoch funktioniert das, wenn ich das Ding mittels Access-Verknüpfung laufen lasse.

Wenn die Verknüpfung nach Oracle zeigt, verwendet mein Frontend die zweite Abfrage mit den "LEFT OUTER JOINS", dann bekomme ich aber beim "rs.edit" eine Fehlermeldung "Abfrage nicht aktualisierbar, schreibgeschützt...".

Was mache ich falsch?

Eigentlich müsste ich die Fehlermeldung ja bei beiden Varianten oder bei gar keiner bekommen (bestehen ja beide aus JOINS).

Ich bedanke mich schonmal für eure Hilfe :)

lg

Stefan

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.